Skip to main content
Glama

enter_code

Enters a user-provided one-time verification code into a browser tab's code field after approval, completing a verification step instead of handing it back to the user.

Instructions

Types a one-time verification code that the user has just given you into the code field of a tab. Ask the user for the code first; never guess one. Use this only for a step you would otherwise hand back to the user. Nothing happens without the user's approval. If the result has status "needs_confirmation", nothing has been done yet: call the confirm tool with the values from its "confirm" object, unchanged.

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": {
      "code": "<code>"
    },
    "name": "enter_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoStart of the tab address, used when no tabId is given. With neither, the active tab is used.
codeYesThe code exactly as the user gave it.
tabIdNoChrome tab id of the tab you are working in.
submitNoSubmit after typing. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does disclose key traits: nothing happens without user approval, and a needs_confirmation result means no action has occurred yet, with an exact recovery path. It stops short of describing error behavior or what the submit flag does on failure.

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?

Four short sentences, front-loaded with the action, followed by the prerequisite and the confirmation handshake. Every sentence adds a distinct constraint and nothing is redundant.

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 four-parameter mutation tool with no annotations and no output schema, the description covers the safety gate and the confirmation recovery path, which are the things an agent would otherwise get wrong. Missing only edge-case behavior such as failure or retry semantics.

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 100%, so all four parameters (code, url, tabId, submit) are already documented in the schema. The description's added meaning is minimal beyond reinforcing that the code must be exactly as the user gave it; baseline 3 is appropriate when the schema does the heavy lifting.

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: types a one-time verification code into the code field of a tab. The scope is narrow and unambiguous, so an agent can tell this apart from a generic typing or secret-entry tool without opening the 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 a clear prerequisite (ask the user for the code first; never guess) and an explicit exclusion ('use this only for a step you would otherwise hand back to the user'), plus follow-up routing to the confirm tool when status is needs_confirmation. It does not mention when another typing/secret sibling would be preferred, which keeps it just below a full 5.

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