Skip to main content
Glama

BYOKG

Read a node

get_node
Read-onlyIdempotent

Resolve one node by its id or an exact name, without a search, when the user names a thing the room holds (a verse by reference, a root by its letters, a term by its id). Input: ref (required: the external id as the bundle states it, one of its alt_ids, its IRI, an exact name, or a node_id) and namespace_id. Returns the node, its properties and external_id, and resolved_by, which says how the ref matched; explore returns it with its relations. Several nodes named so are NODE_REF_AMBIGUOUS with candidates, never a guess: pass the external id or a node_id. None is GRAPH_NODE_NOT_FOUND. Imported graph nodes; deterministic, no model call, nothing stored. The ref is the node's external id as the bundle states it (ayah:24:35 and r68 in the Quran graph, GO:0008150 in an ontology, a page's address in a vault), resolved by its digest in one lookup, else its node_id as search, neighbors and paths hand it out, else a name a property of exactly one node states (n-w-r, نور, part of, or the node's own name) while its name holds every word of it, the value typed as given before one equal only once folded; resolved_by says which. That is the only rank: the node's own name and another node's property rank alike, so a value one node states as its name and another in a property (n-s-y as a root's name and as another root's romanized_ascii) is NODE_REF_AMBIGUOUS with both as candidates, never a guess. Several nodes named so give the count: search for the name and pass a hit's node_id. Example: {"ref": "GO:0008150", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.7.0 ref also resolves one of a node's alt_ids (resolved_by ALT_ID), and an ambiguous name lists its candidates in the error. Since contract revision 4.9.0 ref also resolves the IRI a record states beside its id (resolved_by IRI): a converter that shortens an IRI to a CURIE keeps the IRI as the iri property, so both forms name the node. Since contract revision 4.9.2 the description states the rank between a name and another property (unchanged behaviour). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.

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": {
      "ref": "<ref>"
    },
    "name": "get_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesExternal id, alt id, IRI, exact name or node_id.
namespace_idNoRoom name; omitted: the default room.

Output Schema

NameRequiredDescriptionDefault
nodeYes
read_onlyYes
generationYes
propertiesYesThe node's properties as the bundle states them.
external_idYesThe id the bundle states for the node; null when the record states none.
resolved_byYesWhether ref was the node's external id, its node_id, or a name it states.
namespace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, but the description adds genuinely non-structured behavior: deterministic, no model call, nothing stored, and the two error outcomes (NODE_REF_AMBIGUOUS with candidates, GRAPH_NODE_NOT_FOUND) that never guess. The reported resolved_by field is explained, which the agent could not infer. Points lost only because the revision-history paragraphs describe contract bookkeeping rather than tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single good opening sentence is followed by roughly ten more covering return values, errors, a duplicated explanation of ref resolution, and three changelog paragraphs (4.6.0, 4.7.0, 4.9.0, 4.9.2) that do not help an agent invoke the tool. The matching rules are effectively stated twice, and the revision notes bury the operational content.

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 resolver with an output schema, the description covers the lookup semantics, all error branches, and the meaning of the returned resolved_by. Nothing needed to call it correctly on the first try is missing; the defects are excess, not omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and already lists the acceptable ref forms, but the description adds a resolution priority (external id digest first, then node_id, then name/property match) plus folding and ambiguity ranking rules that are not in the schema. This meaningfully expands on the one-line schema description. Not a 5 because the same resolution rules are restated more than once rather than stated once cleanly.

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?

Opens with a specific verb and resource: "Resolve one node by its id or an exact name, without a search, when the user names a thing the room holds," and immediately distinguishes itself from search/explore. The parenthetical examples (a verse by reference, a root by its letters, a term by its id) make the scope concrete for an agent.

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

Usage Guidelines5/5

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

States both when to use it (a named thing, no search desired) and the alternative path when it fails: "Several nodes named so give the count: search for the name and pass a hit's node_id." It also explicitly contrasts with explore, which "returns it with its relations," so the agent can choose between the two.

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