Skip to main content
Glama

request_endpoint_creation_payment

Return the x402 payment challenge (v1 JSON body plus, when the server sends it, the decoded v2 PAYMENT-REQUIRED header as paymentRequired) needed to create a new agent endpoint. Requires a dashboard PAT with mcp:endpoints:write or mcp:*.

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": {
      "accessToken": "<accessToken>",
      "slug": "<slug>",
      "name": "<name>",
      "originUrl": "<originUrl>",
      "walletAddress": "<walletAddress>",
      "chain": "<chain>"
    },
    "name": "request_endpoint_creation_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPricing mode
nameYesHuman-readable endpoint name
slugYesUnique slug for the new endpoint
chainYesPrimary payout network, usually base, solana, or both
priceNoPrice per request or base package price
categoryNoMarketplace category
currencyNoPayout currency, default USDC
imageUrlNoEndpoint image URL
bannerUrlNoEndpoint banner URL
originUrlYesOrigin URL of the endpoint backend
webhookUrlNoOptional HTTPS webhook URL
accessTokenYesYour dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*
descriptionNoEndpoint description
walletAddressYesPrimary payout wallet address
purchaseAmountNoUSDC amount to pay on creation, minimum 5
listOnMarketplaceNoWhether to list the endpoint publicly
walletAddressSecondaryNoSecondary wallet when chain is both

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accessToken / description
      Previous value: -"Your dashboard MCP personal access token (sgl_pat_*)"New value: +"Your dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*"
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does meaningful work: it discloses the required credential scope ('dashboard PAT with mcp:endpoints:write or mcp:*') and describes the return payload, including conditional behavior when the server sends a v2 header. What it does not clarify is whether any server-side state is created, whether the challenge expires, or whether repeat calls yield fresh challenges — gaps that matter for a payment-challenge 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?

Two clauses, front-loaded with the returned artifact and its shape, then the credential precondition. No filler or repetition. The parenthetical about the v2 header is dense but earns its place by describing a conditional return element that has no output schema to cover it.

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?

For a 17-parameter, no-annotation, no-output-schema tool, the auth and partial return-value disclosure are valuable. But the definition leaves the payment flow position ambiguous — an agent does not learn from this description what to do after receiving the challenge, and the absence of an output schema means the brief payload note is the only return documentation. Adequate but with a clear ceiling.

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% across 17 parameters, so the schema already documents slug, chain, price, walletAddress, and the rest at high fidelity. The description adds only an indirect hint about accessToken (the PAT requirement), which the schema itself also covers. Nothing here extends meaning beyond the schema, so the baseline of 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?

The description uses a specific verb and resource — 'Return the x402 payment challenge ... needed to create a new agent endpoint' — and even enumerates the payload shape (v1 JSON body, decoded v2 PAYMENT-REQUIRED header as paymentRequired). An agent can tell this is the challenge/authorization step rather than the endpoint creation itself. It stops short of naming the sibling that performs the actual creation (create_endpoint_with_payment), so differentiation is implied rather than explicit.

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?

'needed to create a new agent endpoint' implies a prerequisite role in a multi-step payment flow, which is real usage signal. However, there is no explicit when-to-use instruction, no statement that this must precede create_endpoint_with_payment, and no exclusion distinguishing it from request_endpoint_credit_purchase_payment or request_endpoint_topup_payment. The agent must infer the sequencing.

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