Skip to main content
Glama

URL to Markdown API — ScriptMasterLabs

Aftersearch Accept

aftersearch_accept

Get accepted delivery for one immutable job with caller-supplied x402 authorization. Use this when an agent holds fresh PAYMENT-REQUIRED terms and the caller approves the spend; the caller supplies payment_response as the PAYMENT-SIGNATURE value and SML never signs or spends. Returns the Evidence Pack plus the PAYMENT-RESPONSE receipt; on missing authorization returns a fresh 402 challenge, on a bad job_id a structured error. With valid caller authorization, settles an irreversible USDC payment and persists a receipt; the stored job remains immutable. For example, accepting a quoted job delivers the full Evidence Pack with settlement proof.

Input Schema

NameRequiredDescriptionDefault
job_idYesThe 24-char hex job_id being settled.
payment_responseYesThe caller x402 payment authorization payload for this exact job, supplied as the PAYMENT-SIGNATURE value for this job.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the upstream HTTP status is 2xx; not settlement proof.
bodyNoUnmodified upstream JSON, or bounded response text. Consult that capability's live schema.
errorNo
chargedNoPresent on local/transport failures; these do not establish an upstream charge.
messageNo
auto_spentNo
status_codeNoObserved upstream HTTP status, or null when no response was obtained.
substitutedNo
content_typeNo
payment_requiredNoObserved PAYMENT-REQUIRED header; a challenge does not prove payment.
payment_responseNoObserved PAYMENT-RESPONSE header. Assess it together with accepted delivery.
caller_supplied_authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses that settlement is an irreversible USDC payment and that the server never signs or spends on the caller's behalf. It also specifies the two failure modes: a fresh 402 challenge when authorization is missing and a structured error for a bad job_id. It confirms the job record stays immutable after settlement.

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?

The precondition is front-loaded and each sentence conveys a distinct point: what the tool does, when to use it, what it returns, and how it fails. The closing example repeats the Evidence Pack claim already made two sentences earlier, so it is slightly wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool that settles an irreversible payment, the description covers the authorization model, the return payload, the error paths, and the immutability guarantee. An output schema exists, so the remaining details about the response are already covered elsewhere.

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 coverage is 100%, so both parameters are already documented, and the baseline is 3. The description adds the framing that payment_response is the PAYMENT-SIGNATURE value tied to this exact job, but it adds little beyond what the schema's own descriptions provide.

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 opening sentence names a specific action and resource: retrieving the accepted delivery for an immutable job using caller-supplied x402 authorization. It is distinguishable from the sibling aftersearch_quote, but the phrase 'accepted delivery' is somewhat abstract until the later sentences clarify it.

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?

It states the precondition clearly: the agent must hold fresh PAYMENT-REQUIRED terms and the caller must approve the spend. It also implies the alternative path: without authorization, it returns a fresh 402 challenge instead of settling. It never names a specific sibling tool such as aftersearch_quote or aftersearch_resolve.

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