Skip to main content
Glama

Describe the repository

describe_repo
Read-only

Read-only repository description; never samples or writes project files.

Instructions

Read-only repository description; never samples or writes project files.

Returns a cached summary preview or a deterministic context bundle and
needs_summary for the calling model. Persistence is a separate explicit
write_repo_summary call, which refuses the running installation/source root.
For those protected roots the instruction directs the caller to keep the
overview in its answer or use a separate worktree instead of writing here.

Returns JSON whose fields depend on status:
  up-to-date: {status, path, hash, word_count, in_word_budget, summary_preview}
  needs_summary (refresh required; nothing written):
    {status, workspace_id, repo_hash, repo_path, prompt, instruction}
  error: {status, error}; over stdio a workspace error adds pid, workspace_inputs
    and, from a server the Claude desktop app started, hint; a workspace outside
    the registered root adds code=workspace_mismatch, registered_workspace,
    requested_workspace and remedy, and describes nothing
Follow instruction before persisting. When a write is allowed, pass
workspace_id, repo_path and repo_hash unchanged to write_repo_summary.

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": "describe_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathNoOptional directory within the caller workspace; defaults to the workspace.
workspaceNoAbsolute path of your working directory, the project this session works in. Pass it whenever you have one. It never widens this session's grant: over HTTP the workspace registered for the connection decides, and over stdio it is checked against the client's own MCP roots unless this session's root is already pinned, when it is ignored. Each tool's description says what it does with a path that grant does not cover.
force_refreshNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv26.10.18
    • changedInput schema / properties / workspace / description
      Previous value: -"Absolute path of your working directory, the project this session works in. Pass it whenever you have one: one server can serve several sessions."New value: +"Absolute path of your working directory, the project this session works in. Pass it whenever you have one. It never widens this session's grant: over HTTP the workspace registered for the connection decides, and over stdio it is checked against the client's own MCP roots unless this session's root is already pinned, when it is ignored. Each tool's description says what it does with a path that grant does not cover."
  2. First observedv26.10.14+1807

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the annotations: it discloses caching behavior, that a needs_summary result writes nothing, the exact side effects (none) of a refresh-required state, that write_repo_summary refuses the running installation/source root, and workspace-mismatch errors that describe nothing. The read-only claim is consistent with readOnlyHint=true and openWorldHint=false, and the behavior is otherwise unexplained by the annotations alone.

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?

Front-loaded with the core read-only statement, then structured by status code, which is easy to scan. It loses a point for enumerating full return-field lists that duplicate the output schema, and for restating the persistence boundary twice ('Follow instruction before persisting').

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?

Covers the state machine (up-to-date, needs_summary, error), the protected-root restriction, and the hand-off contract, which is substantial for a tool with a real output schema. The main gap is force_refresh semantics and the precise relationship between it and a needs_summary result.

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 67%, so the schema already documents repo_path and workspace. The description adds real meaning for the hand-off ('pass workspace_id, repo_path and repo_hash unchanged to write_repo_summary') and implies refresh semantics via needs_summary, but force_refresh is never addressed, leaving part of the parameter set to inference.

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?

States a specific verb and resource ('Read-only repository description') and immediately bounds the scope with 'never samples or writes project files'. It also names the write-side sibling (write_repo_summary) and clarifies that persistence happens there, so an agent can distinguish the read path from the write path without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear routing guidance: this tool only describes, and persisting requires a separate explicit write_repo_summary call, with an explicit carve-out for protected installation/source roots where the caller should keep the overview in its answer or use a separate worktree. It stops short of covering the force_refresh path or contrasting with other context-bearing siblings, so not fully exhaustive.

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