Skip to main content
Glama

Query repository semantics

analysis.query
Read-only

Run an allowlisted, bounded node or path query over the semantic repository graph. Raw Cypher and syntax-tree queries are not accepted.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "nodes",
      "edges": [
        "depends_on"
      ],
      "limit": 50,
      "start": {
        "kinds": [
          "application"
        ]
      },
      "direction": "outgoing",
      "analysis_id": "rna_example"
    },
    "name": "analysis.query"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
edgesNo
limitNo
startYes
cursorNo
targetNo
max_hopsNo
min_hopsNo
directionNo
analysis_idYes
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds the constraints that queries are allowlisted (restricted vocabulary) and bounded (result/size limits), which shapes what an agent should even attempt. It does not mention pagination behavior despite the cursor parameter, so it stops at adequate.

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 tightly written sentences with the core purpose front-loaded and the input restriction second. No wasted words, though the brevity is partly a consequence of under-specification rather than disciplined editing.

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

Completeness2/5

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

An output schema covers return values, so that burden is lifted, but this is a genuinely complex tool: 11 parameters, nested start/target objects, three query modes, direction and hop controls, and two required parameters. For that complexity the description is too thin, leaving an agent without enough to construct a valid invocation beyond the provided example.

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

Parameters2/5

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

Schema description coverage is only 9%: of 11 parameters, only organization_id is documented in the schema itself. The description must compensate but adds almost nothing concrete — 'node or path query' faintly gestures at mode, and 'allowlisted' gestures at the edges vocabulary, but start/target structure, direction, min/max_hops, limit, and cursor are left unexplained.

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?

States a specific verb and resource: running a bounded node/path query over the semantic repository graph. This distinguishes it from read-style siblings like analysis.get or analysis.source.get, which fetch analysis artifacts rather than querying graph structure. It does not name an alternative explicitly, so it falls just short of 5.

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?

The only usage-relevant statement is a negative one about input format ('Raw Cypher and syntax-tree queries are not accepted'), which constrains how to phrase a query but not when to choose this tool over analysis.get, analysis.source.get, or analysis.start. There is no when-to-use or when-not-to-use guidance keyed to the sibling set.

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