Skip to main content
Glama

Lattice: CVE, MITRE ATT&CK and detection graph for security agents

List linked nodes

graph_neighbors
Read-onlyIdempotent

Directly connected nodes with each link's verb, source, confidence and whether it is declared or inferred. Declared and cross-source links come first. If the answer has truncated: true, pass its next_cursor as cursor to continue.

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": {
      "uid": "<uid>"
    },
    "name": "graph_neighbors"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe uid of the node whose links to list, from graph_lookup, graph_search or graph_node.
verbNoOptional upper-case relationship verb to keep, for example EXPLOITS, DETECTS or USES. The valid verbs are listed by graph_meta.
labelNoOptional node label (type) to restrict the answer to, for example CVE, Technique or Detection. The valid labels are listed by graph_meta; an unknown label is refused with the valid ones.
limitNoMaximum links to return. The server clamps it to its own maximum; the answer reports applied_limit and limit_clamped.
cursorNoContinuation token: pass the next_cursor from a previous answer that had truncated: true to get the next page. Omit it for the first page.
directionNoWhich links to follow: out (from this node), in (to this node) or both.both

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed6 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"Continuation token: pass the next_cursor from a previous answer that had truncated: true to get the next page. Omit it for the first page."
    • addedInput schema / properties / direction / description
      Added value: +"Which links to follow: out (from this node), in (to this node) or both."
    • addedInput schema / properties / label / description
      Added value: +"Optional node label (type) to restrict the answer to, for example CVE, Technique or Detection. The valid labels are listed by graph_meta; an unknown label is refused with the valid ones."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum links to return. The server clamps it to its own maximum; the answer reports applied_limit and limit_clamped."
    • addedInput schema / properties / uid / description
      Added value: +"The uid of the node whose links to list, from graph_lookup, graph_search or graph_node."
    • addedInput schema / properties / verb / description
      Added value: +"Optional upper-case relationship verb to keep, for example EXPLOITS, DETECTS or USES. The valid verbs are listed by graph_meta."
  3. First observed

TDQS

A3.8/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, so the bar is lower. The description still adds genuine behavioral detail not in the annotations: result ordering ('Declared and cross-source links come first') and the truncation/next_cursor continuation contract. It omits other traits such as how link direction affects results, but overall it contributes real context.

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?

Three short sentences with zero redundancy: payload first, ordering second, pagination escape hatch last. Each sentence carries actionable information and the most important content is front-loaded.

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?

With no output schema and six parameters, the description does well by naming the returned link attributes and the truncated/next_cursor fields. What remains thin is guidance on filtering by verb/label/direction and on the relationship to sibling traversal tools, but nothing critical to correct invocation is missing.

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 uid, verb, label, limit, cursor and direction are all documented in the schema itself. The description only restates the cursor continuation behavior, adding nothing about verb casing, label validity, direction values or limit clamping. Baseline 3 applies when the schema carries the semantics.

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 states a specific verb and resource ('Directly connected nodes') and enumerates the per-link payload (verb, source, confidence, declared/inferred), which is far more informative than the title's 'List linked nodes'. It does not, however, explicitly differentiate itself from graph_node or graph_path, leaving the agent to infer that neighbors is one-hop only.

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?

Usage guidance is limited to pagination mechanics: 'If the answer has truncated: true, pass its next_cursor as cursor to continue.' There is no statement of when to choose graph_neighbors over graph_node, graph_path or graph_search, so selection must be inferred from the tool name.

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