Skip to main content
Glama

Understand a request

compile
Read-only

Reads a request for a list, written in everyday words in any language: companies and local businesses, products and stores, jobs, papers, clinical trials, grants, tenders, datasets, repositories and packages, apps, books or podcasts. Returns how SpecStream understood it: what to find, the conditions for every result, the facts to bring back (required or optional), how many, and in what order. The returned ast_hash identifies this reading. For a list the user has, parent_find_id and the operation add facts to it, extend it or refresh it. In that case, what it finds and its conditions stay the same, and only the new facts or the new count are read. The caller needs read access to that list. Nothing runs and nothing is charged.

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": {
      "q": "<q>"
    },
    "name": "compile"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
localeNoen-US
retainedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description still adds real value by stating "Nothing runs and nothing is charged" (i.e. compilation is free and non-executing) and by explaining that ast_hash identifies this particular reading. The retained-mode behavior — the server reloads the prior Spec and callers cannot substitute a base — adds semantics no annotation conveys.

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-loaded with the core action and the return shape before moving to the retained variant, and no sentence is filler. Some sentences are long and densely comma-listed (the domain enumeration), which costs a little scannability but not correctness.

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, the description correctly spends words on the return payload (find target, conditions, required/optional facts, count, order, ast_hash), and it covers the single nested object's purpose. The main gap is the unmentioned locale parameter on a tool explicitly about multi-language input, which is the one place an agent could make a wrong call.

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 reported as 0%, so the description has to carry the load. It handles q (free-form request in any language) and retained well, explaining that add-facts/extend/refresh keep the original target and conditions and only re-read new facts or the new count. It says nothing about the locale parameter or the ast_hash 64-hex format, leaving one of three top-level 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?

"Reads a request for a list, written in everyday words in any language" plus an enumeration of the domains it spans (companies, jobs, papers, trials, datasets, ...) and the shape of what it returns gives a concrete verb+resource. The opaque tool name 'compile' is fully redeemed by the text, but it never names a sibling (create_spec, edit_spec, spec_options) that an agent might confuse it with.

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 states the condition for the retained path clearly: when the user already has a list, supply parent_find_id and an operation. It also states the precondition ("The caller needs read access to that list"). What is missing is any exclusion — nothing says when to prefer create_spec, edit_spec or spec_options instead, so routing between siblings still requires inference.

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.