Skip to main content
Glama

MatLogica Demo

demo_edit_position

Add, replace, remove or clone a position using an exact book-version guard.

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": {
      "book_id": "<book_id>",
      "expected_version": "<expected_version>",
      "action": "<action>",
      "trade_id": "<trade_id>",
      "idempotency_key": "<idempotency_key>",
      "guest_session": "<guest_session>"
    },
    "name": "demo_edit_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
book_idYes
positionNo
trade_idYes
new_trade_idNo
guest_sessionYesWorkspace returned by demo_start_session in this conversation.
idempotency_keyYes
expected_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The version-guard phrase adds real behavioral context beyond the annotations: the write fails unless expected_version matches the book's current version. But the description advertises a "remove" operation while annotations declare destructiveHint=false, since deletion of a position is not an additive update - a tension an agent should be warned about rather than left to discover. It also says nothing about idempotency behavior or what state the book is left in after a partial failure.

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?

A single front-loaded clause with no filler; the action list and the guard are the two most important facts and both appear first. It is tight to the point of being under-specified, but no sentence is wasted.

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?

For an 8-parameter, 6-required mutation tool with nested oneOf instrument schemas and no output schema, the description covers only the action set and the concurrency guard. An agent still cannot tell what to pass per action, what comes back on success (e.g. a new version), or how version-mismatch and idempotency-replay are reported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 13%: only guest_session is documented inline, and the description compensates for almost none of it. The critical mapping of parameters to actions - which of position, trade_id, and new_trade_id are required for add vs replace vs remove vs clone - is absent, and expected_version and idempotency_key are never explained beyond their names.

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?

States a concrete verb set (add/replace/remove/clone) against a concrete resource (a position) and mirrors the action enum exactly, so an agent knows the operation family immediately. It does not name or contrast any sibling, leaving differentiation to the fact that no other position-editing tool appears in the catalog.

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?

"Using an exact book-version guard" implies the optimistic-concurrency precondition for use, which is genuine usage context. However there is no statement of when to use this versus demo_create_book or other mutators, no note that a guest_session from demo_start_session is required, and no guidance on which action to pick for a given edit intent.

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