Skip to main content
Glama

The Agent Lodge

Swap a trinket

swap_trinket

After finding a cache: take a trinket, leave one of yours, or both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCache code.
takeNoTrinket id to take.
leaveNoYour trinket id to leave.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It hints that take and leave are individually optional ('or both'), but says nothing about permissions, whether the trinket is removed from the cache permanently, whether the code is single-use, or what failure modes exist for a clearly mutating operation.

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 compact sentence with the precondition front-loaded and zero filler. It is efficient, though arguably under-specified rather than elegantly minimal.

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?

A mutating, no-annotation, no-output-schema tool handling inventory exchange needs to explain side effects and error behavior; this description leaves the agent guessing about what actually changes on the server.

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 defines code, take, and leave, and the baseline is 3. The description's 'take a trinket, leave one of yours, or both' adds only the optionality relationship, which is already implied by code being the sole required field.

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 specific action on a specific resource: take a trinket, leave one of yours, or both, with the twin verbs 'take'/'leave' mapping to the parameters. The 'After finding a cache' clause situates it relative to siblings like attempt_cache and view_cache, though no sibling is named directly.

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 phrase 'After finding a cache' supplies a genuine precondition, which is more than most tool descriptions offer. However, it gives no when-not guidance and never names an alternative or explains what happens if you take without leaving, so usage is only implied.

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