Skip to main content
Glama

ScorpTech x402 Tools

Josephus Place

josephus_place
Read-onlyIdempotent

When a seat is eliminated. Place 1 is the first person out. The survivor has place n. With 5 people and every 2nd, seat 2 has place 1 and seat 3 has place 5. The seat must be from 1 to n. n runs from 1 to 10000. Returns JSON with: n, k, seat, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/josephus-place

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": {
      "n": "<n>",
      "k": "<k>",
      "seat": "<seat>"
    },
    "name": "josephus_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
nYes
seatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive computation. The description adds useful non-annotation context: the JSON return fields, the $0.001 per successful x402 call, and the HTTPS endpoint. It does not describe error behavior, but the added operational and output context is substantive.

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

Conciseness3/5

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

The description is short and includes relevant details, but it opens with a fragment ('When a seat is eliminated') rather than a clear action statement. The example, constraints, return fields, pricing, and endpoint are packed together without strong front-loading.

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

Completeness3/5

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

For a three-parameter computational tool with no output schema, the description supplies an example, return field names, constraints, and pricing. However, it never explicitly defines k or the returned value, leaving essential semantics for the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must define n, k, and seat. It states n's range and that seat must be 1..n, and the example implies k is the elimination step, but k is never explicitly defined and the returned 'value' is unexplained.

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 description explains what a Josephus 'place' means and gives a concrete example mapping seats to elimination order, so the intended computation is inferable. It does not explicitly contrast this tool with related siblings such as josephus_order or josephus_first, which keeps it below a 5.

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

Usage Guidelines2/5

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

The description gives invocation constraints (seat must be 1..n, n up to 10000) but no guidance on when to use this tool versus the other Josephus tools. An agent must infer the selection context from the name and example alone.

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