Skip to main content
Glama

Sqrt Period

sqrt_period
Read-onlyIdempotent

The period of the continued fraction of sqrt(d). sqrt(2) has period 1, sqrt(3) has period 2, sqrt(7) has period 4, and sqrt(13) has period 5. A square is rejected. d runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/sqrt-period

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": {
      "d": "<d>"
    },
    "name": "sqrt_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
dYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark it as read-only, idempotent, and non-destructive, but the description adds important behavioral details: squares are rejected, pricing ($0.001 USDC per call), and an alternative HTTPS endpoint. It doesn't specify what error is returned for squares, but the added context is substantial.

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?

Front-loaded with the core definition, followed by illustrative examples, a constraint, range, and relevant pricing/endpoint info. Every sentence is purposeful and no redundancy is present.

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?

Given a simple one-parameter tool with no output schema and read-only annotations, the description covers the calculation, constraints, cost, and alternative access. It could explicitly state the return value is an integer period, but otherwise it provides enough for correct invocation.

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?

With 0% schema description coverage, the description compensates by stating the domain (d from 1 to 100000) and the key constraint (squares rejected). The parameter's role is implied by 'sqrt(d)', and the added constraint is not present in the schema.

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 computation: the period of the continued fraction of sqrt(d). Includes illustrative examples (sqrt(2)→1, sqrt(3)→2, etc.) and a constraint (squares rejected), making the tool's exact purpose unambiguous.

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?

No explicit when-to-use guidance or alternatives mentioned, despite many sibling tools like cf_sqrt, cf_expand, and sqrt_cf that could be confused with this one. The implied context is clear from the purpose, but the agent is left to infer when this tool is preferable.

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