Skip to main content
Glama

Get a proof-of-work challenge

get_ad_challenge

A fresh challenge {id, seed, bits, expires_at} for one place_ad_order call. Solve it yourself: find a decimal nonce such that SHA-256(seed + ":" + nonce) has at least bits leading zero bits (the API difficulty: default 24, 18 to 28). Send the order at least 2 s after getting the challenge and within 10 minutes. One challenge = one order attempt.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ad_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description carries most of the behavioral burden and does so well: it discloses the proof-of-work algorithm, the difficulty band (default 24, 18-28), the expiry window, the mandatory delay, and single-use semantics. What it omits is whether the fetch itself is rate-limited or requires authentication, and what error looks like if the challenge is consumed or expired.

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?

Front-loaded with the return shape and the one-order relationship, then the solving procedure, then the timing constraints. Every sentence carries operational information; the parenthetical '(the API difficulty: default 24, 18 to 28)' is slightly compressed but not 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?

No output schema exists, and the description compensates by enumerating the returned fields and their meaning. For a zero-parameter tool with thin annotations, it supplies the algorithm, timing, and lifecycle rules an agent needs to call it correctly and hand the result to place_ad_order.

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?

The tool takes zero parameters, so the baseline applies. The description does useful extra work by explaining that the returned 'bits' field sets the solving difficulty and that the seed/nonce concatenation format is fixed, which is semantics the empty schema cannot 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?

Names a specific verb and resource ('fresh challenge') and states the exact return shape {id, seed, bits, expires_at}, plus its relationship to a sibling ('for one place_ad_order call'). An agent can immediately tell this apart from place_ad_order or get_ad_order.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use routing ('for one place_ad_order call') and hard timing rules: send the order at least 2 s after getting the challenge, within 10 minutes. It also states the exclusivity constraint ('One challenge = one order attempt'), which tells the agent when it must fetch a new one rather than reuse.

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