Skip to main content
Glama

MatLogica Demo

demo_replace_market

Create a new market version while retaining the original snapshot.

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": {
      "market": "<market>",
      "idempotency_key": "<idempotency_key>",
      "entity_id": "<entity_id>",
      "expected_version": "<expected_version>",
      "guest_session": "<guest_session>"
    },
    "name": "demo_replace_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes
entity_idYes
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.7/5.0
Behavior3/5

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

The annotations already establish that this is a non-read-only but non-destructive, closed-world operation. The description adds useful context that the original snapshot is retained, which clarifies versioning behavior beyond the annotations. However, it does not explain optimistic concurrency via expected_version, idempotency behavior, validation failures, or what happens when the expected version does not match.

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 a single front-loaded sentence with no wasted wording. Its brevity is appropriate in form, though the wording creates some ambiguity between 'replace' and 'create a new version'.

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?

This is a complex mutation tool with a deeply nested market snapshot schema and several concurrency-related required parameters, but the description is only one sentence. It does not explain the expected versioning workflow, idempotency semantics, session requirements, or likely failure modes. Without an output schema, the description should do more to set expectations about the result.

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 only 20%, with five required parameters including expected_version, idempotency_key, entity_id, guest_session, and a nested market snapshot. The description does not explain any of these parameters or add meaning beyond the schema's structural constraints. With low coverage, the description should compensate but does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/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: creating a new market version while retaining the original snapshot. However, the tool name says 'replace' while the description says 'create a new version', which creates some ambiguity about whether the operation overwrites or versions. It also does not distinguish this tool from siblings such as demo_create_market or demo_advance_market.

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?

There is no explicit guidance on when to use this tool versus demo_create_market, demo_advance_market, or other market-related siblings. It also does not state prerequisites such as needing an existing entity, a valid guest session, or a matching expected_version. Usage is only implied by the description.

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