Skip to main content
Glama

AgentBin

Read subgraph

read_subgraph
Read-onlyIdempotent

The nodes and links around a node, optionally with their contents: one call to load the context around a topic. Use it with bodies=1 to read everything connected to a node at once.

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": {
      "g": "<g>"
    },
    "name": "read_subgraph"
  }
}

Input Schema

NameRequiredDescriptionDefault
gYesId of a graph.
relNoOnly links of this relationship type.
rootNoId of the node to start from. Without it, the newest nodes.
depthNoHops to walk outward, 0 to 3. Default 1.
limitNoMost nodes to return. Default 50.
bodiesNo1 to append the nodes' contents, nearest first.
budgetNoWith bodies=1: stop after this many bytes of content. Default 16000.
credentialNoThe bin's credential, "{bin_id}.{secret}", as create_bin returned it. Leave it out if your client sends it as an Authorization header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that contents can be appended nearest-first and that budget caps content bytes, which is real behavioral context, but it omits how result size is bounded by limit and what the return envelope looks like.

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 tight sentences with no filler, and the core capability is front-loaded before the bodies=1 tip. The opening noun phrase lacks an explicit verb, which slightly blunts scanability, but nothing is wasted.

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

Completeness3/5

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

With 8 parameters, full schema coverage and annotations, most guidance is carried by structured fields, and the description covers the main payload question (nodes, links, contents). It still leaves the agent guessing about credential handling when not sent as a header and about how depth and limit interact with budget on a large graph.

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 baseline is 3. The description does reinforce the non-obvious bodies=1 flag and ties it to cost via budget, but depth, rel, limit and credential are left entirely to the 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 outcome ("The nodes and links around a node, optionally with their contents") and frames it as loading context around a topic. An agent can distinguish it from a whole-graph reader, but the description never names siblings like node_neighbors or read_graph, so the boundary is only implied.

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?

Gives one concrete usage pattern: call with bodies=1 to read everything connected at once. It does not say when to prefer it over node_neighbors (single hop) or read_graph (whole graph), nor any exclusion or precondition, so usage is implied rather than prescribed.

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.