Skip to main content
Glama

placegraph

Export the PAS graph

export_graph
Read-onlyIdempotent

Export a finished competitor_graph or enrich_leads job's graph: json (nodes/edges), graphml (Gephi, yEd), cypher (paste into Neo4j Browser or cypher-shell), mermaid (small graphs). Nodes carry their community (same ids as competitor_graph). focus_place_id exports one place's neighbourhood only, e.g. a mermaid diagram of a shop and its competitors. Free.

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": {
      "job_id": "<job_id>",
      "format": "<format>"
    },
    "name": "export_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYes
job_idYes
focus_hopsNoNeighbourhood size for focus_place_id (default 1)
focus_place_idNoOnly this place and its neighbours
include_off_categoryNoDefault: the job's setting (false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower; the description still adds real context beyond them: the job must be complete, community ids match competitor_graph, mermaid is unsuitable for large graphs, and the operation is 'Free' (cost disclosure absent from annotations). It doesn't describe output size limits or failure modes, but the added behavioral context is substantial.

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 required preconditions, then format semantics, then the optional focus mode. Dense but nearly every clause carries information; the parenthetical tool names are the only mild clutter, and they aid selection.

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 still characterizes what json contains (nodes/edges) and what node attributes to expect (community ids aligned with competitor_graph). For a read-only export tool this is close to sufficient; only edge cases like very large cypher/graphml exports or focus_hops defaults are left implicit.

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 60%, and the description compensates for the format enum by explaining what each value is consumed by, and clarifies focus_place_id's neighborhood semantics with an example. It leaves focus_hops (default 1, max 2) and include_off_category's inheritance from the job setting unmentioned, which the schema partially covers on its own.

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 (export) and resource (a finished competitor_graph or enrich_leads job's graph), then enumerates the four output formats with concrete targets. An agent can distinguish this from competitor_graph/enrich_leads themselves, which produce rather than serialize the graph.

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?

Gives a clear precondition (the job must be 'finished') and explains which format to pick and why — graphml for Gephi/yEd, cypher for Neo4j Browser or cypher-shell, mermaid for small graphs, json for raw nodes/edges. It also scopes the focus_place_id use case with a concrete example. No explicit when-not-to-use guidance, but the format-selection advice is unusually actionable.

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.