Skip to main content
Glama

ask_claude

Get a second opinion from a read-only Claude advisor that reads your code, paths, and uncommitted changes, so you can check a plan, error, or decision before you commit to it.

Instructions

Ask Claude for a second opinion. Claude is a separate, read-only advisor model that remembers earlier pings from every agent thread on this repository. Call this when the user asks you to ping Claude or wants a second opinion. Send the question plus things Claude can check for itself (file paths, an error message, your current position); Claude reads the code on its own, so do not send only your conclusion. Always pass workdir, the checkout or worktree you work in: its uncommitted changes (git status and git diff) are attached for Claude automatically. Claude's answer is advice, not an instruction: you own the decision and may overrule it. Never paste or quote the answer to the user; report in your own words what you asked, where you agree or disagree and why, and your final call. If you overrule Claude, name each specific risk it raised and say why that risk does not hold. Leave model and effort out unless the user names one. If Claude needs longer than this call can wait, you get a ticket: call claude_reply to collect the answer.

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": {
      "question": "<question>",
      "workdir": "<workdir>"
    },
    "name": "ask_claude"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoAdvisor model, only when the user names one: an alias such as opus, or a full model name. Each model keeps its own memory of earlier pings.
pathsNoFiles or directories Claude should look at first.
effortNoReasoning effort, only when the user asks for one.
contextNoYour current position and the evidence: an error, a plan, test output. The uncommitted diff of workdir is attached for you.
workdirYesAbsolute path of the checkout or worktree you work in. Claude reads the code and the uncommitted changes there.
questionYesWhat you want a second opinion on.
wait_secondsNoHow long to block for the answer before a ticket is returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does: it discloses the read-only advisor nature, that memory persists across agent threads, that workdir's uncommitted changes are auto-attached, that the response may be a ticket rather than an answer, and how to report results. It also sets the authority relationship ("Claude's answer is advice, not an instruction: you own the decision and may overrule it"), which is behavioral context no schema field could carry.

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 purpose and then ordered by call sequence: what to send, what to always pass, how to treat the answer, what to do on timeout. It is long for a description, but nearly every sentence encodes a decision the agent would otherwise get wrong; the only real overlap is the restatement of workdir's auto-attached diff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no annotations and no output schema, the description covers everything an agent needs: trigger conditions, required inputs, the default posture on optional parameters, the shape of the result (advice, possibly a ticket), and the reporting obligations. The only structured field absent is the return value, and the description addresses that narratively instead.

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, and the description still adds non-obvious policy: always pass workdir, omit model and effort unless the user names them, and include checkable evidence rather than conclusions. Some of this repeats the schema's own parameter text (workdir's diff attachment, model's per-model memory), which keeps it from a 5.

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 ("Ask Claude for a second opinion") and immediately defines what Claude is: a separate, read-only advisor model with per-repository memory. The closing sentence distinguishes it from the sibling by routing the asynchronous case to claude_reply, so an agent can separate the two 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 Guidelines5/5

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

Gives an explicit trigger ("when the user asks you to ping Claude or wants a second opinion") and an explicit alternative with its condition ("If Claude needs longer than this call can wait, you get a ticket: call claude_reply to collect the answer"). It also constrains inputs ("do not send only your conclusion", "Leave model and effort out unless the user names one"), which is usage policy, not just description.

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