Skip to main content
Glama

Ask the person in the 3D view to allow a tool

doctor_permit

Handles permission prompts for portal tools inside the 3D view, then returns an allow or deny JSON response so users can approve access without leaving the view.

Instructions

For a doctor run without a keyboard (Claude Code's --permission-prompt-tool). When the client needs permission for one of this portal's tools, this puts the question to the person IN the 3D view, where they are, and waits for their answer there: nobody has to leave the view for a terminal or a settings page. A tool that only reads is asked about once per visit; one that changes something is asked about every time, with what it was given. Only the person whose token this is can allow, and allowing a tool here widens nothing: the tool still passes its own checks. The answer is the JSON the client expects: behavior allow or deny.

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": {
      "tool_name": "<tool_name>"
    },
    "name": "doctor_permit"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNowhat it would be called with
tool_nameYesthe tool that needs permission
tool_use_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the prompt-once-per-visit behavior for read-only tools, per-call prompting with arguments for mutating tools, that only the token owner can allow, and crucially that allowing here does not widen permissions because the tool still passes its own checks. It also documents the response shape (JSON with behavior allow or deny). This is unusually complete for a mutation-adjacent tool with zero annotation coverage.

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-loads the scenario (keyboardless doctor run) before the mechanics, and every clause adds information about behavior or safety. It is dense but not padded; the colons and parenthetical context keep it readable. Slightly long for the amount of parameter detail it conveys.

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 three-parameter, no-output-schema permission broker, the description covers what triggers it, who can approve, what safety guarantees survive, and what the return value looks like. Remaining gaps are minor: no mention of what happens on denial beyond the allow/deny field, and no timeout or waiting behavior. Nothing an agent needs to invoke it correctly is missing.

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 explains tool_name and input ('what it would be called with'). The description reinforces that mutating requests are shown 'with what it was given' and that the tool_name identifies the pending tool, but adds no new detail on the nested input object or on tool_use_id, which is undocumented in both places. Baseline 3 is appropriate when structured fields do most of the work.

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 specific verb and resource: it puts a permission question to the person in the 3D view and returns their answer. The opening clause ('For a doctor run without a keyboard, Claude Code's --permission-prompt-tool') scopes exactly what this tool is for. It stops short of naming a sibling it replaces or defers to, so differentiation with doctor_calls/doctor_note is left to inference.

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 a clear trigger condition: used when a keyboardless doctor client needs permission for one of the portal's tools. It also tells the agent the read-only-vs-mutating cadence (asked once per visit vs every time), which is real usage guidance. No explicit when-not or named alternative tool is given.

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