Skip to main content
Glama

Vectorial Data Terminal: Hyperliquid, Polymarket & yield for AI agents

log_decision

Log WHY you traded (your audit trail and future public track record). Pass order_id to correlate.

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": {
      "reasoning": "<reasoning>"
    },
    "name": "log_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoThe model or strategy that made the decision (optional)
order_idNoThe order_id this decision belongs to, to correlate them (optional)
reasoningYesWhy you traded (or didn't), in plain words; kept in your audit trail

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / model / description
      Added value: +"The model or strategy that made the decision (optional)"
    • addedInput schema / properties / order_id / description
      Added value: +"The order_id this decision belongs to, to correlate them (optional)"
    • addedInput schema / properties / reasoning / description
      Added value: +"Why you traded (or didn't), in plain words; kept in your audit trail"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations establish this is a non-destructive write with no idempotency guarantee, and the description adds meaningful context beyond them: the entry becomes an audit trail and a 'future public track record', which is a non-obvious consequence for an agent to know. It does not warn that repeated calls may create duplicate entries (idempotentHint=false), which is the main remaining gap.

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 short sentences, front-loaded with the core purpose and followed by the one operative instruction about correlation. No filler or repetition of 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?

For a simple three-parameter write tool with full schema documentation and annotations covering the safety profile, the description covers purpose, the value of the recorded reasoning, and the correlation key. Only the non-idempotent duplicate-call behavior and timing relative to the trade are left unstated.

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 all three parameters are already documented, including the correlation role of order_id. The description reinforces order_id's purpose and frames reasoning as the 'why' rather than the 'what', but adds no format, length, or content guidance beyond the schema.

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 gives a specific verb+resource ('Log WHY you traded') with a clear scope: recording the rationale behind a trade rather than placing it. It implicitly separates itself from order-execution siblings like place_order and submit_order, though it never names an alternative explicitly.

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?

Usage is only implied: 'Log WHY you traded' suggests calling it after or alongside a trade, and 'Pass order_id to correlate' hints at pairing with an order. There is no explicit when-to-use, when-not-to-use, or guidance on whether it should be called before or after the trade is submitted.

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.