Skip to main content
Glama

Sage Agent x402 Tools

dev_deterministic_tools

Read-onlyIdempotent

Executes zero-hallucination deterministic developer calculations across four explicit modes: 'cron' (next UTC run timestamps), 'json_diff' (RFC-6902 patch ops), 'jwt' (decode header/payload & expiry without signature verification), and 'semver' (exact version sort/max). Use for exact algorithmic checks; use ai_code_security_review for code auditing or ai_reasoning_120b for open-ended reasoning. Read-only, stateless; costs $0.002 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

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": {
      "mode": "<mode>"
    },
    "name": "dev_deterministic_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesOperation mode: 'cron' (requires expression), 'json_diff' (requires before & after), 'jwt' (requires token), or 'semver' (requires versions).
afterNoTarget JSON value/object to compare against. Used only when mode is 'json_diff'.
countNoNumber of upcoming UTC schedule timestamps to compute (1-25, default 5). Used only when mode is 'cron'.
tokenNoCompact JWS/JWT string ('header.payload.signature') to decode and check exp/nbf timestamps. Used only when mode is 'jwt'.
beforeNoOriginal JSON value/object to compare from. Used only when mode is 'json_diff'.
versionsNoArray of SemVer version strings (e.g. ['1.10.0', '1.2.3-beta.1', '2.0.0']) to sort and inspect. Used only when mode is 'semver'.
expressionNo5-field UTC cron expression (e.g. '0 */2 * * *'). Used only when mode is 'cron'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: it is stateless, costs $0.002 USDC via x402, unpaid calls return a v2 quote challenge without charging, invalid inputs return 400 uncharged, and JWT decoding happens without signature verification. That last caveat and the payment/error semantics are exactly the kind of context annotations cannot carry, though the description still says nothing about output shape or rate limits.

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?

Two sentences, front-loaded with the mode enumeration before the guidance and the operational caveats. The second sentence is dense and chains several clauses (read-only, stateless, price, unpaid challenge, 400 behavior) but each clause earns its place; only the run-on structure costs it a point.

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 7-parameter, 100%-covered schema with no output schema, the description covers purpose, alternatives, cost, failure behavior and per-mode outputs at a high level ('next UTC run timestamps', 'decode header/payload & expiry', 'exact version sort/max'). It does not describe the concrete return structure for each mode, which is the main remaining gap given there is no output schema.

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?

Schema description coverage is 100%, so the schema already documents each parameter, including which mode each one belongs to. The description still adds semantic detail the schema lacks, such as 'RFC-6902 patch ops' for json_diff and 'exact version sort/max' for semver, and restates the mode-to-required-parameter dependency, which helps an agent pick a valid combination.

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 opens with a specific verb ('Executes') and resource ('deterministic developer calculations') and enumerates the four concrete modes (cron, json_diff, jwt, semver) with a parenthetical explaining each. An agent can distinguish this utility tool from every sibling listed without opening the schema.

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?

It states the positive condition ('Use for exact algorithmic checks') and names two explicit alternatives with the conditions that select them ('ai_code_security_review for code auditing or ai_reasoning_120b for open-ended reasoning'). This is an explicit when/when-not/alternative split.

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.