Skip to main content
Glama

GhostKey — Route Paid APIs with x402

GhostKey Quote

ghostkey_quote
Read-onlyIdempotent

Explain how to obtain authoritative pricing for a GhostKey/SML paid capability. Pricing and settlement destination come from the fresh live HTTP 402 challenge, never a copied wallet or stale fixed price.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ghostkey_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
capabilityNoCapability name or identifier to price — a GhostKey/SML paid capability (for example a tool or route name); pricing is read from that capability's fresh live HTTP 402 challenge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / capability / description
      Added value: +"Capability name or identifier to price — a GhostKey/SML paid capability (for example a tool or route name); pricing is read from that capability's fresh live HTTP 402 challenge."
  2. Changed3 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / capability / description
      Removed value: -"Capability name or identifier for which caller wants canonical paid-route quote guidance."
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "authority": {
      -      "type": "string"
      -    },
      -    "capability": {
      -      "type": "string"
      -    },
      -    "charged": {
      -      "const": false
      -    },
      -    "paid_execution": {
      -      "type": "string"
      -    },
      -    "payment_is_delivery": {
      -      "const": false
      -    },
      -    "quote_status": {
      -      "const": "free_pre_spend_guidance"
      -    }
      -  },
      -  "required": [
      -    "capability",
      -    "quote_status",
      -    "charged",
      -    "authority",
      -    "paid_execution",
      -    "payment_is_delivery"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / capability / description
      Added value: +"Capability name or identifier for which caller wants canonical paid-route quote guidance."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "authority": {
      +      "type": "string"
      +    },
      +    "capability": {
      +      "type": "string"
      +    },
      +    "charged": {
      +      "const": false
      +    },
      +    "paid_execution": {
      +      "type": "string"
      +    },
      +    "payment_is_delivery": {
      +      "const": false
      +    },
      +    "quote_status": {
      +      "const": "free_pre_spend_guidance"
      +    }
      +  },
      +  "required": [
      +    "capability",
      +    "quote_status",
      +    "charged",
      +    "authority",
      +    "paid_execution",
      +    "payment_is_delivery"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  5. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the description's added value is the behavioral rule that pricing and settlement destination must come from the fresh live 402 challenge, never a stale or copied value. That is meaningful anti-staleness context beyond structured fields, though it omits what happens when a challenge cannot be obtained.

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 sentences with no filler, and the authoritative-source constraint is front-loaded after the purpose statement. The only weakness is the slightly indirect "Explain how to obtain" opener, which costs a word or two of clarity.

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 single-parameter read tool with annotations and no output schema, the description covers purpose, source of truth, and what the result contains (pricing and settlement destination). It is nearly complete, missing only failure behavior when no live challenge is available for the named capability.

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?

With one parameter at 100% schema description coverage, the schema already explains the capability identifier in detail. The description restates the same idea (pricing read from that capability's live challenge) without adding accepted syntax, aliases, or error semantics, so it meets but does not exceed the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource — authoritative pricing for a GhostKey/SML paid capability — but the verb framing "Explain how to obtain" is ambiguous: it reads like documentation rather than a call that returns a quote. The subject matter is clear and distinguishable from session/policy siblings, but an agent may be unsure whether this fetches a price or explains a procedure.

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 implied: use it when you need pricing for a paid capability, and the guidance to rely on the fresh live HTTP 402 challenge rather than a copied wallet or stale price tells the agent what source of truth to trust. However, there is no explicit when-not clause and no named alternative (e.g., the catalog sibling) for enumerating capabilities before pricing one.

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