Skip to main content
Glama

Simple House Planner

Query plan

query_project
Read-only

Use this to check a plan against building rules, such as accessibility or US code, or for questions that describe_plan does not answer. Runs a read-only script and returns what it returns. Scripts work as in edit_project, but only plan.floors, plan.elements, plan.get, plan.describe, plan.warnings, plan.check and plan.search are available; plan.check("din18040-2") or plan.check("irc2021") checks the plan against DIN 18040-2 for barrier-free dwellings or the 2021 IRC.

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": {
      "project_id": "<project_id>",
      "script": "<script>"
    },
    "name": "query_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYesJavaScript that reads the plan through plan and returns a value, such as return plan.check("irc2021").
project_idYesThe project's ID from list_projects or create_project. It is an internal key: people know their plans by title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / project_id / description
      Previous value: -"The project's ID from list_projects or create_project. Never show it to the person."New value: +"The project's ID from list_projects or create_project. It is an internal key: people know their plans by title."
    • addedInput schema / properties / script / description
      Added value: +"JavaScript that reads the plan through plan and returns a value, such as return plan.check(\"irc2021\")."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description's real contribution is the sandbox disclosure (only plan.floors, plan.elements, plan.get, plan.describe, plan.warnings, plan.check and plan.search are available), which is genuinely useful behavior beyond the annotations. However, 'returns what it returns' explicitly declines to describe output or error behavior, and with no output schema that gap remains entirely unaddressed.

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?

Two sentences, front-loaded with the primary use case and routing rule, with no redundant restatement of the name. The middle clause enumerating the available plan methods is a long run-on that would read better as a list, and 'returns what it returns' spends words on saying nothing.

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?

For a two-parameter, fully schema-documented tool with no output schema, the description supplies what an agent most needs: the sandboxed API surface, the check codes, and the sibling it substitutes for. Remaining gaps are failure modes and result shape, but the sandbox enumeration and explicit routing make it callable without further context.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by documenting the semantics of the script parameter far beyond the schema: the restricted API surface, the pattern of returning a value, and the concrete check identifiers ('din18040-2' for barrier-free dwellings, 'irc2021' for the 2021 IRC). project_id is left entirely to the schema.

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 states a specific verb and resource ('check a plan against building rules, such as accessibility or US code') and explicitly names the sibling it complements, describe_plan. It is slightly muddied by a second framing ('Runs a read-only script and returns what it returns'), which makes it sound like a general script runner rather than a code-checking tool, so it falls short of a clean 5.

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

Usage Guidelines4/5

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

It gives a concrete routing rule: use this for building-rule checks or for questions describe_plan does not answer. That is a clear alternative with a selection condition. It stops short of stating when-not to use it (e.g. trivial lookups that describe_plan handles well) beyond the implicit fallback framing.

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