Skip to main content
Glama

mt_get_swarm_graph

Read-only

Retrieves an agent's two-hop trust propagation graph, including scored agent nodes and endorsement edges, to show who endorses the agent and who endorses those endorsers.

Instructions

Get the trust propagation graph for an agent (2 hops).

Returns nodes (agents with scores) and edges (endorsements) showing who endorses this agent and who endorses them.

Args: did: DID of the agent to get graph for

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": {
      "did": "<did>"
    },
    "name": "mt_get_swarm_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYesDID of the agent to get graph for, e.g. did:moltrust:a1b2c3d4e5f60718

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.1
    • addedInput schema / properties / did / description
      Added value: +"DID of the agent to get graph for, e.g. did:moltrust:a1b2c3d4e5f60718"
  2. First observedv1.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description adds real value by disclosing the 2-hop traversal depth and the meaning of the returned nodes (agents with scores) and edges (endorsements). It does not state behavior for an unknown or unregistered DID, nor any auth or rate-limit constraints, which keeps it short of a 5.

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?

The core behavior and scope are front-loaded in the first sentence, and the two-sentence body is efficient. The trailing 'Args' block duplicates the schema's own description of 'did' and is wasted space in a one-parameter tool.

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

Completeness5/5

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

For a single-parameter read tool with an output schema and readOnlyHint annotation, the description covers everything an agent needs: traversal depth, returned node/edge semantics, and the target identifier. Nothing essential to correct invocation is missing.

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 coverage is 100% and the single 'did' parameter already carries a format example (did:moltrust:a1b2c3d4e5f60718). The description's Args line merely restates the schema text, adding no meaning beyond it; baseline 3 applies for a fully documented one-parameter 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?

States a specific verb and resource: 'Get the trust propagation graph for an agent', with a stated scope (2 hops) and clarifying what nodes and edges represent. This is distinguishable in kind from sibling tools like mt_get_trust_score or mt_get_track_provenance, though the description never names those alternatives explicitly.

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?

There is no explicit when-to-use or when-not-to-use guidance and no routing to alternatives among the many trust-related siblings (mt_get_trust_score, mt_get_track_provenance, mt_get_swarm_stats). Usage is only implied by the purpose statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.