Skip to main content
Glama

GhostKey — Route Paid APIs with x402

GhostKey Session Status

ghostkey_session_status
Read-onlyIdempotent

Check whether a scoped GhostKey browser session is alive and whether its user-controlled browser bridge has a fresh heartbeat.

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>"
    },
    "name": "ghostkey_session_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesSession identifier (UUID) returned by ghostkey_session_create.
agent_tokenYesAgent token issued with the session at creation; authorizes status checks for this session only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent_token / description
      Added value: +"Agent token issued with the session at creation; authorizes status checks for this session only."
    • addedInput schema / properties / session_id / description
      Added value: +"Session identifier (UUID) returned by ghostkey_session_create."
  2. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuine context beyond them: the heartbeat belongs to a *user-controlled* bridge, implying results can be stale or negative because of the human side rather than the agent. It stops short of describing the possible status outcomes or whether a stale heartbeat is distinguishable from a dead session, which is the key behavioral question for this tool.

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?

A single front-loaded sentence with no filler; the two things checked are enumerated in order. It loses a point only because 'fresh heartbeat' carries an undefined freshness threshold, leaving the reader to guess what counts as fresh.

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?

With no output schema, the description is the only place an agent can learn what a status check returns, and it does not say whether the result is a boolean, a state enum, or timing metadata. For a lightweight two-parameter read tool this is tolerable, but the missing outcome vocabulary and heartbeat staleness definition leave a real gap.

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 both session_id and agent_token are already documented in the schema, including the UUID format and the token's authorization scope. The description's only added signal is 'scoped', reinforcing that the token authorizes this session only, which the schema already states. Baseline 3 applies.

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?

Names a specific verb (check) and two precise resources: the scoped session's liveness and the browser bridge's heartbeat freshness. 'Scoped' implies a per-session check as opposed to a global one, but the description never names the sibling it differs from (e.g. ghostkey_status or ghostkey_device_pairing_status), so the distinction is inferred rather than stated.

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?

Usage is only implied by the phrase 'scoped ... session' — an agent can infer this is the per-session liveness probe rather than the global status or the session_action mutation. There is no explicit when-to-use condition, no guidance on when to prefer ghostkey_status or ghostkey_device_pairing_status, and no mention of what to do when the check comes back negative (recreate, revoke, retry).

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