Skip to main content
Glama

gograph_skeleton

Read-onlyIdempotent

Generate stripped Go API signatures—structs, interfaces, function and method declarations—for one indexed file or the full repository to map codebase structure without implementations.

Instructions

Emit API signatures with function bodies stripped — struct definitions, interface declarations, and function/method signatures only. Supply file for one exact repository-relative indexed file (its output also starts with the file's import block); omit it for the full repository. Unknown files return an error. WARNING: whole-repository output can be very large. WHEN TO USE: For a file's declarations or a compact map of the entire codebase's shape. NOT TO USE: For full implementations (use gograph_source); for a single package (use gograph_public). RETURNS: Multi-line text of stripped declarations and package names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gograph_skeleton"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOptional repository-relative indexed file; selects only that file's package, import block and declarations. Unknown files are errors, never a repository fallback.
rootNoAbsolute path of your checkout or worktree (alias cwd).
intentionNoRationale; required with an active session.
session_idNoSession from session_create; omit for none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.26
    • changedInput schema / properties / file / description
      Previous value: -"Optional repository-relative indexed file; selects only that file's package and declarations. Unknown files are errors, never a repository fallback."New value: +"Optional repository-relative indexed file; selects only that file's package, import block and declarations. Unknown files are errors, never a repository fallback."
  2. Changed3 schema fields changedv1.7.21
    • changedInput schema / properties / intention / description
      Previous value: -"Technical rationale, required for analytical calls selecting an active session."New value: +"Rationale; required with an active session."
    • changedInput schema / properties / root / description
      Previous value: -"Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean."New value: +"Absolute path of your checkout or worktree (alias cwd)."
    • changedInput schema / properties / session_id / description
      Previous value: -"Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session."New value: +"Session from session_create; omit for none."
  3. Changed4 schema fields changedv1.7.18
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "Optional repository-relative indexed file; selects only that file's package and declarations. Unknown files are errors, never a repository fallback.",
      +  "type": "string"
      +}
    • addedInput schema / properties / intention
      Added value: +{
      +  "description": "Technical rationale, required for analytical calls selecting an active session.",
      +  "type": "string"
      +}
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.",
      +  "type": "string"
      +}
  4. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds real behavior beyond that: unknown files produce an error rather than a repository fallback, whole-repository output can be very large, and per-file output begins with the import block. It stops short of describing ordering or performance characteristics.

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?

The purpose is front-loaded in the first clause, followed by the file/whole-repo distinction, the warning, and the use/avoid guidance. Dense but every sentence carries information; the only slight redundancy is restating the error behavior in both the body and the RETURNS line.

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, the description correctly supplies a RETURNS line describing multi-line text of stripped declarations and package names. For a four-parameter read-only tool this is nearly complete; minor gaps are deterministic ordering and whether root defaults to the current directory.

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 baseline is 3. The description still adds meaning to the `file` parameter beyond the schema: it must be an indexed repository-relative path, it selects that file's package and import block, and unknown values error instead of falling back. The root, intention, and session_id parameters are left to the schema.

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 description opens with a specific verb and resource: 'Emit API signatures with function bodies stripped', then enumerates exactly what is emitted (struct definitions, interface declarations, function/method signatures). This is concrete enough to distinguish it from a source-listing or public-API tool without opening the 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?

It contains explicit WHEN TO USE and NOT TO USE sections that name the alternative tools and the condition that selects them: full implementations go to gograph_source, a single package goes to gograph_public. The choice between one file and the whole repository is also stated.

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