Skip to main content
Glama

plan_subset

Read-onlyIdempotent

Builds referentially complete data subsets from a root table and primary-key values, returning related table names and row counts without exposing row values.

Instructions

Given a root table and primary key, return related tables and row counts for the subset. No row values.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>",
      "ids": "<ids>"
    },
    "name": "plan_subset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesPrimary-key values for the root row
tableYes
maxRowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description usefully adds that only counts are returned and no row values are exposed, but it does not explain output shape or how maxRows affects results.

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

Conciseness5/5

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

Two short sentences, front-loaded with the operation and finished with an important return-value constraint. There is no unnecessary wording.

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

Completeness3/5

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

For a simple read-only planning tool with annotations covering safety, the definition is mostly adequate. However, it omits the structure of the returned related-table data and the effect of maxRows, and there is no output schema to fill that gap.

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 coverage is only 33%, with just the ids parameter documented in the schema. The description clarifies that table is the root table and ids are primary-key values, but it does not explain maxRows at all, leaving one of three parameters undocumented.

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

Purpose4/5

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

The description uses a specific verb-and-resource formulation: it returns related tables and row counts for a subset defined by a root table and primary key. It clearly states what the tool does, though it does not distinguish itself from siblings such as extract or inspect_schema.

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

Usage Guidelines2/5

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

It supplies no explicit when-to-use guidance, no when-not-to-use guidance, and no mention of alternatives such as extract or verify. The agent must infer that this is a preview/planning step before extraction.

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

Deploy Server

Other Tools