Skip to main content
Glama

create_endpoint_with_payment

Create a new agent endpoint after you have obtained a valid signed x402 payment (v2 or v1) for the creation challenge. Requires a dashboard PAT with mcp:endpoints:write or mcp:*. If the reply is HTTP 202 with status settlement_pending (or fulfilment_pending / needs_review), the payment may already have gone through: do NOT sign a new payment; call this tool again later with the SAME paymentPayload and the same fields. One payment creates one endpoint: a repeat returns already_created; reuse for another slug returns 409 payment_already_used (nothing charged).

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>",
      "paymentPayload": "<paymentPayload>"
    },
    "name": "create_endpoint_with_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
paymentPayloadYesSigned x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 string
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 / paymentPayload / description
      Previous value: -"Raw X-Payment payload returned by the paying client, as JSON or base64 string"New value: +"Signed x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 string"
  2. 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_*"
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so well: it discloses the required auth scope (mcp:endpoints:write or mcp:*), idempotency behavior (one payment = one endpoint, repeat returns already_created), the 409 payment_already_used path with 'nothing charged', and the async 202 settlement_pending state with correct retry semantics. This is exactly the failure-mode guidance an agent cannot get from the schema.

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?

Three tight sentences, precondition front-loaded, then auth, then the retry/idempotency contract — a sensible information hierarchy. The parenthetical error-code stack ('settlement_pending / fulfilment_pending / needs_review') is dense but each clause earns its place for a payment-gated mutation.

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 18-parameter, 7-required mutation with no annotations and no output schema, the description covers auth, idempotency, retry, and the key error states. It stops short of describing what a successful (non-202) response contains, which is the only meaningful omission given the absent output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all 18 fields and the baseline is 3. The description adds genuine semantics beyond the schema for paymentPayload (must be the SAME signed payload across retries) and accessToken (PAT with mcp:endpoints:write scope), lifting it above baseline.

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 opens with a specific verb and resource ('Create a new agent endpoint') and adds a hard precondition ('after you have obtained a valid signed x402 payment'), which separates it from the request/craft-payment siblings. It never names an alternative tool, so an agent must infer that request_endpoint_creation_payment is the preceding step.

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 explicit when-to-use (only after a signed payment exists) and a strong when-not-to ('do NOT sign a new payment' on 202 settlement_pending), plus a concrete retry recipe with the SAME paymentPayload. The one gap is that it doesn't route the agent to the sibling that issues the creation challenge in the first place.

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