Skip to main content
Glama

consult

Request a second opinion on a question, design, bug, or plan from another coding agent. Run sync for an immediate answer or async to receive a task handle for later reading.

Instructions

Second opinion on a question, design, bug or plan. Sync by default; mode async returns a task_handle (read via wait_argv or session task).

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

Input Schema

NameRequiredDescriptionDefault
modeNosync (default): wait; async: return task_handle, wait via wait_argv or session task.
modelNoOmit unless the user names a model or price limit. doctor lists models, efforts and prices; unknown names fail. Tag ask: ask the user first, a form follows; deny: never runs.
backendNocodex, claude, agy or auto (default: configured, else other CLI, most quota).
proposalYesSelf-contained question or plan; name files instead of pasting them. Bad: "thoughts?"
task_typeNoOmit for plain question; else analysis kind.
file_pathsNo
timeout_msNoMonotonic budget, ms: sync 15m/30m, async 60m/4h.
context_filesNoWorkspace paths the agent reads itself; only the paths are sent.
session_handleNoFollow-up footer handle; else fresh agent.
workspace_pathNoRepo path; omit for client workspace.
reasoning_effortNoOmit for the default; doctor lists per-model values. Required where listed, or as a model name suffix.
output_price_belowNoUser limit, USD per million output tokens, strict (5 excludes 5). Only verified prices qualify; server picks default or newest.
specific_questionsNoExtra questions or criteria.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.8.0
    • changedInput schema / properties / backend / description
      Previous value: -"codex: Codex CLI; claude: Claude Code; agy: Antigravity. auto (default): configured provider, else another CLI than yours, most cached quota."New value: +"codex, claude, agy or auto (default: configured, else other CLI, most quota)."
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "sync (default): wait; async: return task_handle, wait via wait_argv or session task.",
      +  "enum": [
      +    "async",
      +    "sync"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / session_handle / description
      Previous value: -"Same-topic follow-up: footer handle; else a fresh agent rereads all."New value: +"Follow-up footer handle; else fresh agent."
    • changedInput schema / properties / specific_questions / description
      Previous value: -"Extra questions or criteria the answer must cover."New value: +"Extra questions or criteria."
    • changedInput schema / properties / task_type / description
      Previous value: -"Omit for a plain question; set to ask for that kind of analysis."New value: +"Omit for plain question; else analysis kind."
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"Monotonic call budget, ms: Git, prep, consent, CLI turn, teardown."New value: +"Monotonic budget, ms: sync 15m/30m, async 60m/4h."
    • removedInput schema / properties / timeout_ms / maximum
      Removed value: -1800000
    • changedInput schema / properties / workspace_path / description
      Previous value: -"Repository path; omit for client workspace (footer fallback)."New value: +"Repo path; omit for client workspace."
  2. First observedv0.7.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure; it does disclose the sync/async split and that async yields a task_handle readable via wait_argv or a session task. It omits material behavior: that a consult spawns an external paid CLI and consumes quota (only implied indirectly by schema fields like output_price_below), and what a result looks like.

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 front-loaded sentences with no filler, and the default behavior is stated first. The second clause is very dense (task_handle, wait_argv, session task) but each token carries information.

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

Completeness3/5

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

For a 13-parameter tool with no annotations and no output schema, the description covers the default mode and the async follow-up path, which are the highest-risk mistakes. It leaves the return value undescribed and does not prepare the agent for cost or latency, so it is adequate rather than complete.

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 92%, so the schema already documents nearly every one of the 13 parameters, setting the baseline at 3. The description only adds the linkage that the task_handle from async mode is read via wait_argv or the session task, and adds nothing about proposal quality or session_handle reuse beyond what the schema states.

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?

"Second opinion on a question, design, bug or plan" names the resource (an external opinion) and the input kinds it accepts, which is concrete enough to distinguish it from a general-purpose agent. It does not differentiate from siblings such as delegate or review, so an agent must infer whether a second opinion on a plan belongs here or in delegate.

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?

It states the default execution mode and what happens when mode=async, which is real usage guidance for the execution path. It gives no guidance on when to consult at all versus using delegate/review, nor when a follow-up via session_handle is appropriate rather than a fresh agent.

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