Skip to main content
Glama

create_dataset_with_payment

Step 2 of buying a training dataset: submit the job again with the signed x402 payment (v2 or v1) and the quote id. Returns in seconds with a dataset id and a claim token; generation then runs in the background. SAVE THE CLAIM TOKEN — it is shown once and is the only way to read the job or download the result.

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": {
      "description": "<description>",
      "seedExamples": "<seedExamples>",
      "targetRows": "<targetRows>",
      "quoteId": "<quoteId>",
      "paymentPayload": "<paymentPayload>"
    },
    "name": "create_dataset_with_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the dataset
rulesNoHouse rules the assistant must NEVER break, e.g. "Never promise a refund". Without them the model invents its own policy, differently each time
verifyNoCheck every row with a second model and regenerate any that break the rules. ON by default, priced separately ($0.10 per 100 managed, $0.03 per 100 grid where the grid checks its own work so nothing leaves the network). false = skip checking, pay generation only
modelIdNoExact managed model from list_dataset_pricing (decides the tier and price)
networkNoChain you will pay on (default base)
quoteIdYesquote_id from request_dataset_payment
gridModelNoModel on the decentralized encrypted grid: cheaper, slower, data never leaves the network
modelTierNoManaged model speed/quality tier. Omit when using gridModel
targetRowsYesHow many examples to generate (50-2000). Price scales with this
webhookUrlNoPublic HTTPS URL to notify when the dataset is ready; the POST is signed
descriptionYesWhat the model being trained should do, in one plain sentence
seedExamplesYes5 to 20 example conversations showing the behaviour you want
systemPromptNoStanding instruction every generated example should follow
paymentPayloadYesSigned x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or a base64 string

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / paymentPayload / description
      Previous value: -"Raw X-Payment payload from the paying client, as JSON or a base64 string"New value: +"Signed x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or a base64 string"
  2. Changed1 schema field changed
    • addedInput schema / properties / verify
      Added value: +{
      +  "description": "Check every row with a second model and regenerate any that break the rules. ON by default, priced separately ($0.10 per 100 managed, $0.03 per 100 grid where the grid checks its own work so nothing leaves the network). false = skip checking, pay generation only",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / rules
      Added value: +{
      +  "description": "House rules the assistant must NEVER break, e.g. \"Never promise a refund\". Without them the model invents its own policy, differently each time",
      +  "items": {
      +    "maxLength": 200,
      +    "type": "string"
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the whole behavioral burden and does well: it discloses that the call returns in seconds while generation runs in the background, and that the claim token is shown once and is the only way to read the job or download the result. It omits failure modes such as expired quotes or rejected payments, and says nothing about retry/idempotency behavior.

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?

Three sentences, front-loaded with the step identity, then the return shape, then the critical warning in caps. Every sentence earns its place and nothing is redundant.

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 14-parameter, mutation-style tool with no output schema, the description supplies the return values (dataset id and claim token) and the async lifecycle, which is what the schema cannot convey. Pricing and error handling are deferred to the schema or sibling tools, leaving a small gap for a tool this complex.

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%, so the baseline is 3. The description restates the two key inputs (signed payment in v2/v1 form and the quote id) but adds no constraint or format detail beyond what the schema already documents for the 14 parameters.

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?

The description names a specific action and resource — submitting a training-dataset job with a signed x402 payment — and explicitly frames it as 'Step 2 of buying a training dataset', which separates it from the step-1 quote/payment-request siblings. An agent can distinguish this from create_endpoint_with_payment and request_dataset_payment without opening a schema.

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?

'Step 2 of buying a training dataset' and the requirement for a 'quote id' make the prerequisite (obtain a quote first) clear through sequencing. It does not explicitly name request_dataset_payment as the prior tool or state when a caller should choose this over the sibling payment flows, so it stops short of full alternative routing.

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