Skip to main content
Glama

Add an answer to a shim

workbench_shim_add_answer

Adds one answer (a label and, optionally, when it applies). The shim needs three examples of it before it builds again with the new answer. May return needs_confirmation.

Input Schema

NameRequiredDescriptionDefault
answerYes
shimIdYesShim id, from workbench_shim_list.
workspaceNoWorkspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.
approvalIdNoApproval id from a prior needs_confirmation response. Omit on the first call.
descriptionNoWhen this answer applies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnly=false and destructive=false, so safety is partly covered, but the description adds real behavioral context beyond them: the three-example build threshold and the special `needs_confirmation` return path. It does not say what happens to existing answers or how the confirmation round-trip maps to approvalId, which the schema handles.

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?

Three short sentences, front-loaded with the core action and each carrying information (composition of an answer, the three-example build requirement, the confirmation return). Only the parenthetical is slightly clunky, but nothing is wasted.

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?

For a mutation tool with no output schema, the description covers the key operational facts: what is added, the build-threshold requirement, and the confirmation return. The main remaining gap is not relating this tool to add_examples, but overall it is sufficient to call the tool correctly.

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 80%, so the schema documents most parameters (shimId, workspace, approvalId, description). The description adds marginal meaning by framing `answer` as a label plus optional applicability, but the bare `answer` param itself remains undocumented in the schema. Baseline 3 fits.

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?

Specific verb and resource: 'Adds one answer' and clarifies the answer is a label plus an optional applicability condition. It does not differentiate itself from the closely related sibling workbench_shim_add_examples, so an agent could confuse the two.

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?

Usage is implied through workflow context ('the shim needs three examples of it before it builds again'), which tells the agent this is part of a multi-step authoring flow. However, there is no explicit when-to-use versus the sibling add_examples tool, nor prerequisites for the first call.

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