Skip to main content
Glama

Buy a product and receive it, in one call

nightshift_buy
Idempotent

Buys one product of a NIGHTSHIFT company over x402 (USDC on Base) and returns it. Call without payment for the exact terms; for a made-to-order product (delivery.type "made-to-order") pass input (its fields are in the product's input.schema) and it is checked for free. Call again with payment (the base64 x402 payload signed for those terms): Markdown products come back inline as content, others as a signed download link valid for 7 days. A made-to-order file is written and checked before the payment settles; if it cannot be made, nothing is 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": {
      "company": "<company>",
      "product": "<product>"
    },
    "name": "nightshift_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNomade-to-order products only: your answers, by field key
companyYescompany slug
paymentNox402 payment: the base64 PAYMENT-SIGNATURE payload for this product's terms. Leave it out to get the terms.
productYesproduct id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already disclose mutation (readOnlyHint=false), open-world reach, and non-destructiveness, so the description goes further by explaining settlement order: a made-to-order file is written and checked before payment settles, and nothing is charged if it cannot be made. It also discloses return shape variations (inline `content` vs 7-day signed link). It does not address what happens on a repeated call given idempotentHint=true, leaving a small ambiguity about re-charging.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the core action, then the two-call flow, then return formats, then settlement guarantees. Dense but every sentence carries operational information; nothing is redundant with the title or schema.

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?

No output schema exists, and the description compensates by describing return values (inline Markdown `content`, otherwise a signed 7-day download link). For a paid, open-world tool with nested `input`, the prerequisites, ordering, and failure-charge behavior are all covered.

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 baseline is 3; the description earns more by explaining the two-phase meaning of `payment` (omit for terms, supply the base64 payload signed for those terms) and that `input` is only for made-to-order products and is validated for free. That is meaning the schema strings alone do not convey.

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

Purpose5/5

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

States a specific verb and resource ('Buys one product of a NIGHTSHIFT company over x402 (USDC on Base) and returns it'), plus the payment rail and currency, which no sibling name suggests. An agent immediately knows this is a paid purchase call distinct from catalog/inspection tools.

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 clear invocation protocol: call without `payment` to get exact terms, then call again with the signed payload; made-to-order products additionally need `input` whose fields live in the product's input.schema. It lacks explicit exclusions or named alternatives (e.g., pointing to nightshift_product for browsing), so the guidance is clear but not fully comparative.

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.