Skip to main content
Glama

diadoc_add_cabinet

Idempotent

Add or update a named cabinet (API credentials) for marketplace services from chat. Requires explicit confirmation before credentials enter the conversation; saves them locally with restricted permissions.

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.2/5.0
Behavior4/5

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

The description surfaces security-sensitive behavior beyond the annotations: the key is placed in the chat transcript, it requires an acknowledgment flag, and the cabinet is saved to a local file with chmod 600 and never echoed. Annotations already declare the tool mutable (readOnlyHint=false) and idempotent, so this extra context elevates transparency.

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 usefully structured with a warning, a bullet list-like argument breakdown, and an outcome line. It is a little longer than required, but every sentence earns its place by documenting the risk, the parameters, and the safe storage behavior.

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?

Given the output schema exists, the description doesn't need to explain return values. It covers the side effects (file, permissions, chat transcript), parameter nuances, and the required consent flag. Some edge cases like what happens if the cabinet already exists are only implied by 'Add or update', but the overall context is solid.

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

Parameters5/5

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

Despite 0% schema-description coverage, the description provides concrete parameter semantics: `credentials` is detailed with Ozan and WB examples, `name` is described as optional with fallback logic ('named after the real shop name... falls back to "main"'), and `i_understand_key_goes_to_chat` is clearly tied to the chat key risk. This compensates fully for the schema's lack of inline descriptions.

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 clearly states a verb and resource: 'Add or update a cabinet (a named set of API credentials), from chat.' It gives the object a concrete meaning and scopes the action to chat. It doesn't explicitly contrast with `diadoc_set_key` or other siblings, but the resource is clearly differentiated enough for an agent to guess when it applies.

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?

The description explicitly mentions a safe alternative: 'The terminal-free safe alternative is the installer...' and implies this tool should be used only when the user accepts the key going into chat. It also requires (via parameter) an acknowledgment flag. It doesn't mention all siblings like `diadoc_use_cabinet` or `diadoc_remove_cabinet`, but the core when-to-use/when-not-to-use guidance is present.

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