Skip to content

McpTool

One tool an MCP server offers to agents: its name, what it does and whether it only reads.

import McpTool from '@sypnia/ui/astro/McpTool.astro'

On this page
  1. A tool that reads and one that writes
  2. When to use it
  3. For everyone

A tool that reads and one that writes

list_tablesToolRead only
The tables of the project, with their row counts.
insert_rowsToolChanges data
Adds rows to a table. The agent asks before it runs.
Code
---
import McpTool from '@sypnia/ui/astro/McpTool.astro';
---
<div class="sy-docs sy-stack" style="min-height:0;background:none;--gap:var(--s-4)">
  <McpTool name="list_tables" readOnly>The tables of the project, with their row counts.</McpTool>
  <McpTool name="insert_rows" readOnly={false}>Adds rows to a table. The agent asks before it runs.</McpTool>
</div>

When to use it

Use it when

  • The reference of an MCP server.

Do not use it when

  • API endpoints: that is Endpoint.

For everyone

  • «Read only» and «Changes data» are words, not only colours.
  1. A tool that reads and one that writes
  2. When to use it
  3. For everyone

    Search pages, sections and terms