Skip to main content
Glama

safety_decode

Decode raw calldata into its function + arguments and flag dangerous patterns (unlimited approve, setApprovalForAll, permit, transferFrom). Send { data }. Understand what a transaction actually does before signing. [x402 paid tool — price $0.05; POST /api/safety/decode]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes0x calldata blob

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?

No annotations provided; description carries burden. Discloses flagging of specific dangerous patterns, pricing ($0.05), and endpoint. Omits details on error handling or output format but adequate for a read-only decode operation.

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?

Two sentences covering purpose and context, plus a concise line for pricing/endpoint. No wasted words, information is front-loaded.

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

Completeness2/5

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

Tool is simple (one param, no output schema) but description lacks any mention of return value format or behavior on invalid input. Agent may need more to interpret results correctly.

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?

Only parameter 'data' has schema description '0x calldata blob'; description reinforces this. With 100% schema coverage, baseline is 3, and description adds no additional constraints or examples beyond 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?

Description clearly states 'Decode raw calldata into its function + arguments and flag dangerous patterns', specifying verb, resource, and output. Distinguishes from sibling tools like safety_simulate by focusing on decoding.

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?

Explicitly instructs to 'Send { data }' and frames usage context as understanding a transaction before signing. However, no direct comparison to alternatives or when-not-to-use scenarios.

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.