Skip to main content
Glama

Test an offer

test_offer

Test an offer

The health test (one short streamed request on your key, about 16 tokens) and, for a draft, the identity checks (a few hundred tokens). Read the outcome with the get_offer tool. A draft that fails either check is deleted (contract v2.4): get_offer answers 404 and the job (get_supply_job) says why under removed; to try again, draft the model again with create_offers. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.

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": {
      "id": "<id>"
    },
    "name": "test_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe offer id.
retestNoTest again even when a test ran before (a listed offer's health). A draft that fails is deleted, so it is drafted again instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Far beyond the annotations, it discloses token cost (~16 for health, a few hundred for draft identity checks), the consequential side effect that a failing draft is deleted (contract v2.4), the resulting 404 from `get_offer`, and the 403 not_seller authorization boundary. This is exactly the kind of context structured fields cannot carry. Note the tension with destructiveHint=false: deletion is a conditional side effect of failure rather than the tool's purpose, so this is an annotation-accuracy question, not a description contradiction.

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?

It is front-loaded with the core action and cost, then consequences and error paths, so an agent reading only the first sentence still knows what it does. Slight waste in restating the title as the opening line and in stacking several clauses into one dense paragraph, but no filler sentences.

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 with no output schema, the description covers cost, side effects, outcome-reading path, failure diagnostics, retry procedure, and authorization. An agent has everything needed to invoke it correctly and to handle both success and failure outcomes.

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 both `id` and `retest` are already fully documented in the schema; the description repeats the retest semantics rather than adding new meaning. Baseline 3 applies because the schema does the heavy lifting.

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 verb and resource and then defines what 'test' concretely means: a health test (one short streamed request on the key, ~16 tokens) plus, for a draft, identity checks. That level of specificity makes it unambiguous against siblings like get_offer or get_offer_health, which the agent can distinguish 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?

It gives explicit follow-up routing: read the outcome with `get_offer`, inspect failure reasons via `get_supply_job` (`removed`), and re-draft with `create_offers` to retry. It also states the caller prerequisite ('Sellers only') and the exact failure mode (403 not_seller). The only gap is that it doesn't say when not to test versus re-reading existing health, though the `retest` parameter covers that case in the schema.

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