Skip to main content
Glama

List graph root nodes

get_roots
Read-onlyIdempotent

List parentless nodes of an owned published graph, with pagination and nextCursor, as starting points for exploring it. This is not session context.

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

Input Schema

NameRequiredDescriptionDefault
cursorNoOpaque nextCursor from the preceding page of this same query. Omit for the first page; do not construct or reuse across projects.
pageSizeNoMaximum items requested per page, within the schema limits. Continue with the returned nextCursor when present.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed1 schema field changed
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed4 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque nextCursor from the preceding page of this same query. Omit for the first page; do not construct or reuse across projects."
    • addedInput schema / properties / pageSize / description
      Added value: +"Maximum items requested per page, within the schema limits. Continue with the returned nextCursor when present."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the pagination contract (nextCursor) and the claim to be read-only exploration starting points, both useful but modest additions; it says nothing about ordering, graph size, or what a parentless node looks like in the response.

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 with the core purpose and pagination behavior front-loaded. The trailing "This is not session context." is terse to the point of ambiguity, which slightly undercuts otherwise efficient structure.

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 read-only list tool with four parameters, full schema coverage, annotations covering the safety profile and no output schema, the description supplies what an agent needs: what is returned, that results are paginated, and the intended exploratory use. Only the significance of "owned published graph" and node ordering remain unexplained.

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 cursor, pageSize, projectId and sessionId are already fully documented in the schema. The description only reinforces the pagination concept generally and adds no parameter-level meaning beyond that, which places it at the baseline.

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?

States a concrete verb and resource ("List parentless nodes of an owned published graph") plus the delivery shape (pagination with nextCursor) and intended use (starting points for exploration). It is clearly distinguishable from mutation siblings like clear_project_graph or rebuild_context_graph, though the added line "This is not session context" gestures at differentiation without naming the alternative.

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?

The phrase "as starting points for exploring it" implies when to reach for this tool, and "This is not session context" carves out one boundary, but the boundary is opaque since no sibling or concept named "session context" is referenced. There is no explicit mention of when to prefer get_context_graph, get_graph_scope, or get_graph_wiki instead.

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