Skip to main content
Glama

instance_neighbourhood

Inspect an object's fields and its connected objects in a saved ontology run, returning the first 20 links per relationship plus counts for the remainder.

Instructions

实例图谱:一个对象的字段,和数据里与它相连的对象;每条关系先给 20 个,其余计数。

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": {
      "saved_as": "<saved_as>",
      "node": "<node>"
    },
    "name": "instance_neighbourhood"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeYes节点 id,来自 find_instances 或上一次的结果
saved_asYes运行的保存名,来自 list_runs 或 build_ontology

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely useful behavior: each relation returns 20 items first with the remainder given as counts, so the agent knows results are sampled and may be incomplete. It says nothing about read-only nature, whether the 20-item cap can be paged past, or the direction/semantics of the connections.

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?

A single dense sentence front-loads what is returned and then appends the truncation rule; every clause carries information. It is terse enough that the semicolon-joined structure slightly compresses the pagination caveat, 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?

For a 2-parameter read tool with no output schema and no annotations, the description sketches the return shape well enough (fields, connected objects, 20 per relation plus counts). The notable gap is that it never says whether or how an agent can fetch beyond the first 20, leaving the tool's completeness limits ambiguous.

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 both parameters are already documented in the schema, including the same provenance hints the description repeats. The description adds no new meaning about node identity, saved_as scoping, or format beyond what the schema provides, so the 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?

The description names the resource precisely: an object's fields plus the objects connected to it in the data, i.e. the neighbourhood graph of one instance. That implicitly separates it from siblings like object_fields (fields only) and list_relations (relations only), but it never names or contrasts an alternative 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?

It states where the inputs come from ('node id from find_instances or the last result'), but that is schema-level provenance, not usage guidance. There is no statement of when to reach for this tool versus object_fields, object_rows, or list_relations, and no exclusions.

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