Skip to main content
Glama

Plan an operation

plan_operation

An operation the user intends, stored in their plan — ONLY when they say they want it planned. It makes no transaction and moves no figure of their tax years: the plan is replayed after their own history to show what it would come to (get_planner, a few seconds later). Several operations are replayed in the order of their days, each taking the holdings the next cannot have. The result carries the operation's id. Premium's: refused for an account without it (get_planner's premium).

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": {
      "on": "<on>",
      "source": "<source>",
      "address": "<address>",
      "amount": "<amount>"
    },
    "name": "plan_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYesThe day it is planned for, as YYYY-MM-DD: today or later in the user's country, at most five tax years ahead.
intoNoA swap's alone: the token received, named as ``token`` is. Left out on a swap: the chain's own coin.
kindNo``sale``: sold for the money of their tax country. ``swap``: exchanged for ``into``.sale
tokenNoThe token given, as list_transactions names it at that source (a contract's address, an exchange's symbol). Left out: the chain's own coin.
amountYesHow much to sell or swap, in whole units of the token (0.5).
clientNoAn account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case.
remindNoTrue: the user is emailed on that day with what the plan would do to their tax at a recent price. False: no word is sent. None is sent either way for a day whose morning has already come where they live: they are planning it now.
sourceYesWhere the units are: the chain's or the exchange's ``source`` as list_transactions gives it for a transaction of that holding.
addressYesThe user's own wallet address or exchange account there, as list_transactions gives it. A wallet marked as their business cannot be planned at.

Output Schema

NameRequiredDescriptionDefault
idYes
onYes
intoYes
kindYes
tokenYes
amountYes
remindYes
sourceYes
symbolYes
addressYes
remindedYes
written_byYes
into_symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses that nothing is transacted, that the plan is replayed against history and visible via get_planner seconds later, that multiple operations are replayed in day order with holdings consumed sequentially, that the response carries the operation's id, and that premium accounts are required. That is substantial behavioral context an agent could not infer from the schema.

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 key constraint is front-loaded and every sentence carries information, but phrasing like 'moves no figure of their tax years' and 'each taking the holdings the next cannot have' is compressed to the point of obscurity. No filler, though some clauses need a second read.

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?

With an output schema present, return values need not be explained, and the description still covers replay timing, ordering semantics, and the premium gate. For a 9-parameter planning tool the picture is essentially complete, though it never spells out what happens on a rejected premium call.

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 explains each parameter thoroughly, including the business-wallet restriction and date bounds. The description adds only the premium-gating caveat tied to account selection, so the baseline 3 applies.

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 defines the resource precisely (an intended operation stored in the user's plan) and makes clear it creates a plan entry rather than executing anything. It does not name change_planned_operation or remove_planned_operation as the alternatives, but the 'stored in their plan' framing distinguishes it from transaction-creating tools.

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 capitalized 'ONLY when they say they want it planned' is an explicit trigger condition, and 'It makes no transaction and moves no figure of their tax years' implicitly rules out using it when the user wants a real transaction. No exclusions relative to the plan-mutation siblings are 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