Skip to main content
Glama

BYOKG

Explore a node

explore
Read-onlyIdempotent

Explore one node in a single call, when the user asks about a thing the room holds: the node by its reference, its relations per type and direction with counts, weight sums and the limit strongest partners, and its place in a sequence. Input: ref (required, as get_node takes it: external id, alt id, IRI, exact name or node_id), namespace_id, limit, relation_types and sequence_relation. Replaces search, get_node_stats and query_graph_neighbors for the first look at a node; paths stay with query_graph_paths. sequence comes from sequence_relation or the relations the room card declares, and is null when there is none: nothing is guessed. The bounds of get_node_stats; deterministic, no model call, nothing stored. sequence_relation names a relation type that orders nodes (NEXT_AYAH gives a verse's previous and next); without it the relations the room card declares in sequence_relations are used, and sequence is null when neither names one the node has an edge of. The reference resolves as in get_node. Several nodes on one side give the sibling and every candidate. sequence_direction: forward (the default, unless the room card declares the relation inverse) reads an edge from the earlier node to the later one; inverse reads a preceded-by relation, whose OUT edge is the node before. limit is the name every tool uses for the size of its answer (top_n is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"ref": "GO:0008150", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.7.0 nothing is guessed: sequence comes from sequence_relation or the card's sequence_relations, sequence_direction reads a preceded-by relation (inverse), candidates lists every node of a side with several, and ref resolves an alt id (resolved_by ALT_ID). Since contract revision 4.9.0 ref also resolves a record's iri property (resolved_by IRI), and limit is the name of top_n (kept as a deprecated alias). 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": "explore"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesExternal id, alt id, IRI, exact name or node_id.
limitNoStrongest partners per relation type and direction.
top_nNoDeprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted.
namespace_idNoRoom name; omitted: the default room.
relation_typesNoCount only relations of these types.
sequence_relationNoRelation type whose edges order nodes; omitted: what the room card declares.
sequence_directionNoforward: edges run from the earlier node. inverse: a preceded-by relation.

Output Schema

NameRequiredDescriptionDefault
nodeYes
scannedYes
sequenceYesThe node's place in a sequence relation (the one asked, else one the room card declares); null when none was named or the node has no edge of it. With several nodes on one side, previous and next are the sibling (sharing the most of the node's parents; on a tie the most specific) or null, and candidates lists them all.
warningsYesAdded in contract revision 4.1.0. Set when the node has no edge at all (ISOLATED_NODE with the reason its record gives), so an empty answer reflects missing data rather than the request; empty otherwise.
read_onlyYes
relationsYesBy relation type, then direction.
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 and closed-world, yet the description still adds real behavioral context: deterministic execution, no model call, 'nothing stored', that the answer is bounded like get_node_stats, that sequence is null rather than inferred, and that multiple nodes on one side yield candidates. It does not cover pagination or error shapes, so it stops 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.

Conciseness2/5

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

The purpose statement is well front-loaded, but the body then repeats the same points ('sequence is null when there is none: nothing is guessed' appears three separate times) and ends with two paragraphs of contract-revision changelog that do nothing to help an agent select or invoke the tool. A large fraction of the text is metadata noise rather than actionable guidance.

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?

With an output schema, full annotations and 100% schema coverage, the description leaves nothing an agent needs unanswered: reference resolution (external id, alt id, IRI, name, node_id), default room behavior, sequence fallback chain, and the top_n deprecation path are all covered. Complexity here is high and the definition matches it.

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%, so the schema already defines all seven parameters; the description still adds meaning the schema does not, notably that limit is the canonical name with top_n a deprecated alias whose simultaneous use yields SCHEMA_VALIDATION_FAILED, and the interaction between sequence_relation, the room card's sequence_relations, and the forward/inverse default of sequence_direction. Some of this restates the schema, but the cross-parameter rules are genuinely new.

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 opening sentence names a specific verb and resource ('explore one node in a single call') and enumerates exactly what comes back: the node, its relations per type and direction with counts and weight sums, and its place in a sequence. It explicitly distinguishes itself from search, get_node_stats, query_graph_neighbors and query_graph_paths, so an agent can pick it without reading any schema.

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?

Usage is stated both positively ('when the user asks about a thing the room holds', 'the first look at a node') and negatively ('paths stay with query_graph_paths'), and it names the three sibling tools it replaces in that role. This is explicit when-to-use plus named alternatives.

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