Skip to main content
Glama

Validate project graph

validate_project_graph
Read-onlyIdempotent

Dry-run graph acceptance. Returns every rejection, dangling-edge warning, and unscored status at once without publishing a version.

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": {
      "projectId": "<projectId>",
      "nodes": "<nodes>",
      "edges": "<edges>"
    },
    "name": "validate_project_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgesYesDirected relationships between graph nodes, using their stable IDs.
nodesYesPrivacy-filtered graph nodes with stable IDs, labels and component types.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed3 schema fields changed
    • addedInput schema / properties / edges / description
      Added value: +"Directed relationships between graph nodes, using their stable IDs."
    • addedInput schema / properties / nodes / description
      Added value: +"Privacy-filtered graph nodes with stable IDs, labels and component types."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed2 schema fields changed
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the bar is lower. The description earns credit by adding behavior beyond them: it reports all failures in a single pass (rejections, dangling-edge warnings, unscored status) and explicitly confirms no version is published, which is exactly what an agent needs to know before mutating a graph.

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 sentences with no waste. The dry-run nature is front-loaded and the return content follows, so the agent gets the essential fact first.

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 usefully enumerates what comes back (rejections, dangling-edge warnings, unscored status), which is the key missing piece. Minor gaps remain around whether any graph state is persisted and how large inputs are handled, but the schema carries limits and field formats.

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 100%, so projectId, nodes, edges and sessionId are all documented in the schema, including the note that sessionId is not needed for read-only calls. The description adds no parameter-level meaning of its own; baseline 3 applies.

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?

"Dry-run graph acceptance" states a specific verb-plus-resource, and "without publishing a version" distinguishes it from the publish/patch path. It does not name the nearest sibling (validate_node), but the aggregate-versus-single-node distinction is conveyed by "Returns every rejection ... at once".

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the phrase "Dry-run ... without publishing a version" tells the agent this is a pre-publication check, but there is no explicit when-to-use, no stated prerequisites, and no routing to alternatives such as validate_node for a single node.

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