Skip to main content
Glama

confirm

Executes a prepared browser action—login, click, code entry, or secret saving—after the user approves the exact site, page, and detail shown; any mismatch discards it.

Instructions

Carries out an action that login, click, enter_code, save_secret or type_secret prepared (status "needs_confirmation"). Pass the id, action, site, page and detail from that result exactly as given. The user sees these values when asked to allow this call; if any value differs, the action is discarded.

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": {
      "id": "<id>",
      "action": "<action>",
      "site": "<site>",
      "page": "<page>",
      "detail": "<detail>"
    },
    "name": "confirm"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the prepared action.
pageYesThe page the tab is showing.
siteYesThe site (origin) that will be acted on.
actionYesWhat will be done.
detailYesThe username, element text or code-box count that was found on the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/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 disclose two non-obvious traits: the parameter values are shown to the human for approval, and any mismatch causes silent discard rather than an error. It stops short of saying what a successful confirmation returns, whether the prepared action expires, or what happens if it was already confirmed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences: what it does, what to pass, what happens if you don't. The precondition is front-loaded and nothing is restated from the schema.

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 five-required-param mutation with no annotations and no output schema, the description covers the workflow, the consent gate, and the failure rule — the essentials an agent needs. It leaves an agent guessing about return values and whether confirmation is single-use, which matters for a consequential action.

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 schema already explains each field; the description adds real meaning on top by establishing provenance (values come from the prior tool's result), immutability (must be 'exactly as given'), and user visibility. It does not explain the mismatch between the enum values 'code'/'save_key'/'type_key' and the sibling names enter_code/save_secret/type_secret, which could confuse an agent mapping results across tools.

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 ('carries out') and the exact class of actions it executes, naming the five sibling preparation tools and the status token "needs_confirmation" that marks their output. An agent can immediately tell this is the second half of a prepare/confirm pair rather than another preparation step.

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?

Explicitly says to pass id, action, site, page and detail 'from that result exactly as given', which both selects the tool (only after a sibling returned needs_confirmation) and excludes modified inputs. It also states the consequence of deviation — 'the action is discarded' — so the agent knows the failure mode up front.

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