Skip to main content
Glama

get_subgraph

Read-onlyIdempotent

Traverse OKF knowledge graphs from seed URIs to retrieve a bounded subgraph, with options to limit depth, node count, and edge kinds for targeted exploration.

Instructions

Traverse a bounded OKF subgraph outward from one or more seed concepts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNoSingle canonical or path based okf URI to use as a seed.
depthNoMaximum relationship depth to traverse from the seeds.
seedsNoOne or more okf URIs to use as traversal seeds.
maxNodesNoMaximum number of graph nodes to return.
edgeKindsNoLimit traversal to these edge kinds.
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds 'bounded' and 'outward' which give context about traversal behavior, but it does not disclose additional traits like return format, pagination, or performance implications. It does not contradict annotations.

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?

The description is a single sentence with no filler. It is front-loaded with the verb 'Traverse' and includes essential qualifiers ('bounded', 'outward', 'one or more seed concepts'). Every word contributes to understanding.

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?

The tool has a moderate parameter count and no output schema, so more detail about the return value could be helpful. However, the name and description clearly indicate a subgraph traversal, and the annotations and full schema cover safety and parameter semantics. It is adequate but leaves the exact output structure to inference.

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 the baseline is 3. The description does not add extra meaning beyond the schema, but the schema fully documents all five parameters including defaults and constraints, making further elaboration unnecessary.

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?

The description states a specific action (traverse) on a specific resource (bounded OKF subgraph) with a direction (outward from seed concepts). This clearly distinguishes it from siblings like get_graph (whole graph), get_neighbors (immediate neighbors), or find_paths (paths between nodes).

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?

The description implies usage when a graph traversal from seeds is needed, but it does not explicitly state when to prefer this over alternatives or mention any exclusions. It is a clear purpose but lacks explicit when-to-use or when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mfdaves/okf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server