Skip to main content
Glama

Prepare mandate repay

prepare_mandate_repay
Read-onlyIdempotent

Burn synth held by the account to reduce its debt. "all" repays the whole debt. Works while the price is stale. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.

Input Schema

NameRequiredDescriptionDefault
marketYesMarket address (0x...) or symbol, e.g. NO-NVDA
tokensYesSynth to repay as a decimal string, or "all"
accountYesMandate account address (0x...)
approvalNoOnly above the approval threshold: the nonce and deadline from typedData, plus the owner's signature
sessionKeyYesThe session key that will send it (0x...). Not held by this server
approvalTtlSecondsNoOptional: how long a new approval stays valid. Default 1 hour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: it burns synth to reduce debt, supports 'all', works with stale prices, checks account limits, simulates first, returns unsigned transaction data for the session key, switches to EIP-712 typed data above the approval threshold, and refuses contract owners. It also clearly states it never signs or sends, which is consistent with readOnlyHint=true and destructiveHint=false.

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?

The description is front-loaded with the core action and then adds only operationally useful details such as stale-price handling, simulation, approval-threshold behavior, and contract-owner refusal. Every sentence contributes to correct invocation without redundant restatement.

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?

The description is complete enough for a complex prepare tool with nested approval data and no output schema: it explains the two possible return modes and key constraints. It could be slightly richer about the returned transaction/typed-data shape, but the critical behavioral context is present.

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 schema already documents the parameters well. The description reinforces the meaning of 'all' and the approval-threshold behavior, but most parameter semantics are already available in the structured schema, making this a baseline 3.

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 states a specific verb and resource: burn synth held by a mandate account to reduce its debt, and it explains the returned unsigned transaction or EIP-712 data. It does not explicitly differentiate itself from the sibling prepare_mandate_owner_repay, so it falls short of full sibling-aware clarity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives some usage context: 'all' repays the whole debt, it works while price is stale, and it refuses when the owner is a contract such as a Safe. However, it does not explicitly say when to choose this tool over alternatives like prepare_mandate_owner_repay, leaving relative usage implied rather than stated.

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