Skip to main content
Glama

get_node

Retrieve a PHP class, method, route, or channel with its file, line, and every incoming and outgoing relation plus confidence, including other nodes that share the name.

Instructions

One class, interface, trait, enum, method or function: kind, file, line and every relation in and out, with its confidence. Lists the other nodes matching the name.

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

Input Schema

NameRequiredDescriptionDefault
nameYesShort or fully qualified name, Class::method, route (POST /orders), channel or API operation; service@Name in a multi-service repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does well on output content by enumerating exactly what fields come back (kind, file, line, inbound/outbound relations, confidence) and notes that other name matches are listed, which is genuinely useful. It says nothing about whether ambiguous names produce multiple results or an error, whether there is a result limit, or that the operation is a non-mutating read.

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?

Two short sentences, front-loaded with the resource and payload, with no filler. The telegraphic first sentence reads a little like a field list rather than prose, but every clause carries information an agent needs.

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?

For a single-parameter lookup with no output schema and no annotations, the description does the necessary work of describing both the returned fields and the name-collision behavior. Only the ambiguity and result-limit semantics remain unstated, a small gap given how simple the call is.

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 coverage is 100% and the parameter description is already rich, covering short or fully qualified names, Class::method form, routes like POST /orders, channels, API operations, and service@Name in multi-service repos. The prose adds no syntax or formatting detail beyond that schema text, 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 (a single code node: class, interface, trait, enum, method, function) and states exactly what is returned: kind, file, line, relations in and out, and confidence. It is clearly a symbol-lookup tool, though it never names the siblings (get_neighbors, impact_of, outline) to sharpen the boundary, so an agent must infer the split itself.

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 is only implied: look up a symbol by name to get its location and relations. There is no explicit when-to-use or when-not-to-use guidance, and no mention of get_neighbors or impact_of as alternatives when the agent actually wants traversal or blast-radius analysis. The closing note about listing other matching nodes hints at disambiguation of ambiguous names but does not spell out the rule.

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

Deploy Server

Other Tools