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'
A tool that reads and one that writes
list_tablesToolRead onlyThe tables of the project, with their row counts.
insert_rowsToolChanges dataAdds 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.