Skip to main content
Glama

GhostKey — Route Paid APIs with x402

GhostKey Session Action

ghostkey_session_action
Destructive

Relay one authorized browser action into the user's already-authenticated browser. Actions: navigate, inspect, click, input, select, read, wait. Password/hidden fields and off-allowlist navigation are denied. API and bridge documentation: https://ghostkey-mcp.onrender.com/session-bridge/README.txt.

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": {
      "session_id": "<session_id>",
      "agent_token": "<agent_token>",
      "action": "<action>"
    },
    "name": "ghostkey_session_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoTarget URL for navigate/read actions; must be on one of the session's allowed origins.
textNoText to type for an input action, or the option value/label for a select action (up to 4000 characters); never used for password or hidden fields.
actionYesThe browser action to relay: navigate, inspect, click, input, select, read, or wait. Password and hidden fields and off-allowlist navigation are denied.
selectorNoCSS selector (1-500 characters) identifying the element for click, input, select, inspect, or read actions.
attributeNoAttribute name to read for an inspect/read action (up to 100 characters), e.g. href or value.
session_idYesSession identifier (UUID) returned by ghostkey_session_create.
timeout_msNoMaximum time in milliseconds to wait for the action to complete (1000-30000).
agent_tokenYesAgent token issued with the session at creation; authorizes actions inside this session only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"The browser action to relay: navigate, inspect, click, input, select, read, or wait. Password and hidden fields and off-allowlist navigation are denied."
    • addedInput schema / properties / agent_token / description
      Added value: +"Agent token issued with the session at creation; authorizes actions inside this session only."
    • addedInput schema / properties / attribute / description
      Added value: +"Attribute name to read for an inspect/read action (up to 100 characters), e.g. href or value."
    • addedInput schema / properties / selector / description
      Added value: +"CSS selector (1-500 characters) identifying the element for click, input, select, inspect, or read actions."
    • addedInput schema / properties / session_id / description
      Added value: +"Session identifier (UUID) returned by ghostkey_session_create."
    • addedInput schema / properties / text / description
      Added value: +"Text to type for an input action, or the option value/label for a select action (up to 4000 characters); never used for password or hidden fields."
    • addedInput schema / properties / timeout_ms / description
      Added value: +"Maximum time in milliseconds to wait for the action to complete (1000-30000)."
    • addedInput schema / properties / url / description
      Added value: +"Target URL for navigate/read actions; must be on one of the session's allowed origins."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and non-idempotent, so the safety profile is partly covered. The description adds real value beyond that: it discloses that password and hidden fields are denied, that off-allowlist navigation is blocked, and that the agent_token scopes authorization to this session only.

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 tight sentences with the core purpose front-loaded, followed by constraints and a documentation link. The action list is slightly redundant with the schema enum but serves as a quick-scan summary.

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 an 8-parameter, non-idempotent, destructive browser-relay tool with no output schema, the description covers purpose, allowed actions, security denials, and points to bridge documentation. It stops short of describing return values or per-action failure behavior, but the annotations and schema carry most of the remaining burden.

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 every parameter is already documented in the schema, including the action enum and the url/selector/text constraints. The description adds only the action enumeration and denial rules, which the schema already restates, so baseline 3 applies.

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 ('Relay one authorized browser action into the user's already-authenticated browser') and enumerates the exact action set, which lets an agent distinguish it from session_create, revoke, and status siblings 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 Guidelines3/5

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

The description implies usage through the action list and the denial rules (password/hidden fields, off-allowlist navigation), but it never states when to choose this tool over siblings like ghostkey_policy or ghostkey_catalog, nor any prerequisites beyond 'already-authenticated browser'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources