Skip to main content
Glama

diadoc_add_cabinet

Idempotent

Add or update a named API credential cabinet from chat. Requires explicit confirmation that the key will enter the chat transcript.

Instructions

Add or update a cabinet (a named set of API credentials), from chat.

⚠️ This puts the key into the chat transcript — requires i_understand_key_goes_to_chat=true. The terminal-free safe alternative is the installer (install.py / double-click), where the key never enters chat.

Args: credentials: dict with the required fields for this service ({fields}). For Ozon: {{"client_id": "...", "api_key": "..."}}; for WB: {{"token": "..."}}. name: optional label. If omitted, the cabinet is named after the real shop name fetched from the marketplace (falls back to "main"). i_understand_key_goes_to_chat: must be true to proceed. Saved to ~/.marketplace-mcp/cabinets.json (local, chmod 600), never echoed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
credentialsYes
i_understand_key_goes_to_chatNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the key is written into the chat transcript, a required consent flag gates the call, the result is persisted to ~/.marketplace-mcp/cabinets.json with chmod 600, and the value is never echoed. It also discloses side effects the annotations don't cover — the name falls back to the real shop name fetched from the marketplace, then to 'main'.

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 warning is front-loaded before the Args block, and each section earns its place: safety notice, parameter semantics, storage location. The unrendered brace placeholders and a couple of redundant restatements (the consent flag appears in both the warning and the Args) cost it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with nested objects and an output schema, this covers what the schema cannot: consent gating, where the secret is written, that it is not echoed, and how the cabinet gets named. Return values are correctly left to the output schema.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries full burden and mostly succeeds: it documents the per-service credential shape with concrete examples (Ozon client_id/api_key, WB token), the optional name and its fallback chain, and the mandatory consent flag. The literal unrendered template markers ('{fields}', '{{"client_id"...}}') are a defect that leaves the exact required-field list ambiguous.

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 verb+resource ('Add or update a cabinet') and immediately defines what a cabinet is (a named set of API credentials), which cleanly separates it from diadoc_list_cabinets, diadoc_remove_cabinet, and diadoc_use_cabinet. The only friction is the naming mismatch: the tool is prefixed diadoc_ and sits among Diadoc document tools, while the body talks about Ozon/WB marketplace credentials, which could momentarily confuse selection.

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?

Gives a clear use context ('from chat') and an explicit when-not with a named alternative: 'the safe alternative is the installer (install.py / double-click), where the key never enters chat.' That is genuine routing guidance. It stops short of contrasting with the other credential-adjacent siblings (diadoc_set_key, diadoc_use_cabinet), so the agent still has to infer which key-entry path applies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.