Skip to main content
Glama

hub_graph

Retrieve a typed relationship graph across projects and resources to see what runs where, depends on, deploys to, or exposes what. Filter by project or node type and get nodes, edges, and dangling links.

Instructions

The typed relationship graph across projects AND resources: who runs where, what depends on / deploys to / exposes what. Edges are frontmatter [[links]] keyed by relation (runs_on, depends_on, deploys_to, exposes, part_of, ...). Returns nodes, edges, and dangling links. Filter by project or type.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hub_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoreturn everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`.
typeNoonly edges touching a node of this type
projectNoonly edges touching this project/resource slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.88
    • changedInput schema / properties / full / description
      Previous value: -"return everything, uncapped. By default long lists are trimmed to fit an agent context and what was left out is reported in `truncated`."New value: +"return everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`."
  2. Changed1 schema field changedv0.9.0
    • addedInput schema / properties / full
      Added value: +{
      +  "description": "return everything, uncapped. By default long lists are trimmed to fit an agent context and what was left out is reported in `truncated`.",
      +  "type": "boolean"
      +}
  3. Addedv0.1.8

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does useful work: it discloses the data source (frontmatter [[links]] keyed by relation) and the return shape (nodes, edges, dangling links). It does not state that this is a read-only operation, nor does it mention the default trimming/truncation behavior, which only surfaces inside the schema's `full` parameter.

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?

Three tight sentences, front-loaded with what the graph is before the return shape and filters. No filler, though the final fragment 'Filter by project or type' is abrupt and could have carried more routing value in the same space.

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?

No output schema exists, so the description must explain returns and it does (nodes, edges, dangling links). Zero required parameters keeps the call simple, and truncation is covered in the schema; the main remaining gap is the shape of a node/edge object, which is left implicit.

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 all three parameters are already documented in structured form. The description's 'Filter by project or type' duplicates two of them and adds nothing about `full` or the semantics of a type filter on edges, so 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?

States a specific resource (the typed relationship graph) and its scope ('across projects AND resources'), plus the edge vocabulary (runs_on, depends_on, deploys_to, exposes, part_of). It arguably differentiates itself from resource-listing siblings by naming the graph view, but never names an alternative tool 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?

The only usage signal is 'Filter by project or type,' which is a parameter restatement rather than guidance. There is no statement of when to reach for this graph query versus hub_search, hub_resource_list, or hub_get, and no exclusions or prerequisites.

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