Skip to main content
Glama

ScorpTech x402 Tools

Dyck Word

dyck_word
Read-onlyIdempotent

Check a Dyck word of parentheses and report its semilength and height. The empty word is valid. A prefix that goes negative, or a word that does not close, is rejected. Returns JSON with: n, height. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/dyck-word

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": {
      "word": "<word>"
    },
    "name": "dyck_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
wordYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, but the description adds material facts annotations cannot carry: the response shape ('n, height'), the rejection semantics, and a paid-call cost of $0.001 USDC per successful call via x402. It stops short of describing error payloads or rate limits, so it is strong rather than exhaustive.

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-loads the purpose, then validation rules, then output, then cost and endpoint. Every sentence does work, though the closing sentence packs pricing and an alternate HTTPS transport together somewhat densely.

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?

There is no output schema, and the description compensates by naming the returned fields. Combined with validation semantics and cost disclosure, an agent can call this correctly; the only soft spot is the unexplained 'n' versus 'semilength' naming and the maxLength bound.

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 coverage is 0% and there is one required parameter, so the description must carry the meaning. It does clarify the character alphabet and that the empty string is valid, but the schema's pattern ^[()]*$ and maxLength 400 already encode the alphabet, and the description never explains the 400-character cap or the relationship between 'semilength' and the returned 'n'.

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 verb and resource: 'Check a Dyck word of parentheses and report its semilength and height.' The output quantities are named, so an agent knows exactly what the tool produces without opening anything else.

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?

Gives concrete acceptance conditions ('The empty word is valid. A prefix that goes negative, or a word that does not close, is rejected'), which tells the agent when the tool applies and when it will fail. No competing sibling is named, but the domain is narrow enough that no alternative is plausibly confusable.

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