Skip to main content
Glama
WirterNow

AI Agent Bank MCP Server

by WirterNow

create_swap

Set up a P2P token swap offer on the P2PSwap smart contract, specifying tokens and amounts to exchange. Requires api_key for access.

Instructions

Create a P2P token swap offer on the P2PSwap smart contract. Requires api_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour api_key from register_agent
creator_idYesUUID of the agent creating the swap
offer_tokenYesToken symbol or address being offered (e.g. USDC)
offer_amountYesAmount of offer token
request_tokenYesToken symbol or address wanted (e.g. WETH)
request_amountYesAmount of requested token

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only states 'Requires api_key' which is already in schema, but fails to disclose important behavioral traits like gas costs, confirmation time, or error handling. Lacks detail for a mutation tool.

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?

The description is concise with one sentence plus an essential note. It is front-loaded with the main action. However, it could be slightly improved with more context without becoming verbose.

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?

With 6 required parameters, no output schema, and no annotations, the description is too brief. It does not explain return values, error states, or prerequisites (beyond api_key). Incomplete for a complex mutation tool.

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 parameters are well-documented in the schema. The description adds minimal meaning beyond the schema (only mentioning api_key). Baseline of 3 is appropriate.

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 clearly states the verb 'create', the resource 'P2P token swap offer', and the context 'on the P2PSwap smart contract'. It distinguishes from siblings like accept_swap and cancel_cc_order.

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?

The description does not provide guidance on when to use this tool versus alternatives (e.g., accept_swap) or any prerequisites beyond api_key. No exclusions or use cases are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.