Skip to main content
Glama

Prepare a TokenWorks/FWA decision

prepare_tokenworks_decision
Read-only

Prepare an INSPECT or REFUSE record for an FWA action. PREPARE fails while the royalty gate is closed; returns no approval or transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesEVM address.
actionYesRequested FWA action.
reasonYesPublic reason for the decision.
tokenIdYesNFH token id.
deadlineYesUnix expiry as a decimal string.
decisionYesBounded compatibility decision.
operatorYesEVM address.
maxValueWeiYesMaximum wei bound as a decimal string.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYes
boundsYes
reasonYes
schemaYes
statusYes
tokenIdYes
decisionYes
nextGateYes
operatorYes
mcpSignedYes
mcpBroadcastYes
compatibilityYes
requestedActionYes
approvalPreparedYes
transactionPreparedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"Requested FWA action."
    • changedInput schema / properties / agent / description
      Previous value: -"A 20-byte EVM wallet or contract address."New value: +"EVM address."
    • addedInput schema / properties / deadline / description
      Added value: +"Unix expiry as a decimal string."
    • addedInput schema / properties / decision / description
      Added value: +"Bounded compatibility decision."
    • addedInput schema / properties / maxValueWei / description
      Added value: +"Maximum wei bound as a decimal string."
    • changedInput schema / properties / operator / description
      Previous value: -"A 20-byte EVM wallet or contract address."New value: +"EVM address."
    • addedInput schema / properties / reason / description
      Added value: +"Public reason for the decision."
    • removedOutput schema / properties / agent / description
      Removed value: -"A 20-byte EVM wallet or contract address."
    • removedOutput schema / properties / operator / description
      Removed value: -"A 20-byte EVM wallet or contract address."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

With readOnlyHint, openWorldHint, and destructiveHint already provided, the description adds valuable extra behavior: the closed-gate failure mode and the fact that no approval or transaction is returned. This goes beyond the annotations and helps set expectations, though it does not explain why or what happens on success.

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 tightly written sentences carry real information: one defines the resource and action, the other adds the key failure mode and return limitation. There is no fluff, filler, or repeated schema content.

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 the rich schema (100% parameter coverage), output schema, and annotations, the description covers the main behavioral risks an agent needs to know: when it can fail and what it will not return. The only slight gap is not expanding on what 'FWA action' or 'royalty gate' mean, but they are domain concepts likely clear from other TokenWorks tooling.

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 description coverage is 100%, so the input schema already fully explains all eight parameters and their constraints. The description adds no parameter-level meaning beyond what the schema provides. The enums and patterns are documented in the schema, so the baseline 3 is appropriate.

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 names a specific verb and resource: PREPARE an INSPECT or REFUSE record for an FWA action. It also distinguishes the tool from the many prepare_* siblings by mentioning TokenWorks/FWA and adding the unique caveat about returning no approval or transaction. It could be slightly clearer about how 'prepare' here relates to the decision enum including 'prepare'.

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?

The description gives a concrete failure condition: PREPARE fails while the royalty gate is closed. It also explicitly states what the tool does not return, which helps an agent avoid using it when an approval or signed transaction is expected. It stops short of naming a preferred sibling alternative, so it is not a 5.

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.