Skip to main content
Glama

host.table.create

Declare a table in this tenant's SQL table store -- a different store from host.state.'s key-value namespace and its own tables: use host.state. for a handful of small values, host.table.* when you want real SQL (joins, aggregates, read-only queries) over rows. columns is {"column": "text"|"integer"|"real"| "timestamp"|"boolean"|"json"}; primary_key, if given, must name one of columns's own entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTable name to declare.
columnsYesColumn name to type map, each type one of text|integer|real|timestamp|boolean|json, e.g. {"id": "integer"}.
tenant_keyNoThe key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins.
primary_keyNoColumn name (must be in columns); optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the store's nature and the primary_key constraint, but does not state what happens if the table already exists (error vs idempotent), nor the permission/auth implications beyond tenant_key. Adequate but with real gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action and the store distinction in the first clause; every sentence earns its place. The inline columns schema is slightly awkward but conveys the enum set efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description does the heavy lifting on the store model and the primary_key rule. It is nearly complete for a create tool, missing only post-creation behavior (e.g., duplicate handling).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are already documented, including the columns type map and the 'must be in columns' constraint on primary_key. The description restates these rather than adding new syntax or defaults, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Declare) and resource (table) scoped to 'this tenant's SQL table store'. It explicitly distinguishes itself from host.state.*, so an agent can tell it apart from sibling creation tools like host.state.table_create.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear routing rule: use host.state.* 'for a handful of small values' and host.table.* 'when you want real SQL (joins, aggregates, read-only queries) over rows.' This is explicit when-to-use guidance naming the alternative store.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources