Skip to main content
Glama

Set the capture response

set_capture_response
DestructiveIdempotent

Set what a capture-enabled subdomain answers with. By default it returns a JSON acknowledgement; override the status code, content type, and body to test how a sender handles a specific response — for example returning 500 to trigger its retry logic. Omitted fields keep their current value. Send an empty body to restore the default acknowledgement. Content types that render in a browser (text/html, image/svg+xml) are rejected.

Input Schema

NameRequiredDescriptionDefault
bodyNoResponse body, up to 64KB. Empty restores the default JSON acknowledgement.
statusNoHTTP status code to return, 100-599
content_typeNoResponse Content-Type. One of: application/json, text/plain, application/xml, text/xml, text/csv, application/x-www-form-urlencoded, application/octet-stream
subdomain_idYesSubdomain ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The description adds real context beyond the annotations: patch semantics ('Omitted fields keep their current value'), the restore-default path, and a rejection rule for browser-rendering content types. It doesn't spell out the destructive consequence explicitly, but dangerous behaviour (overwriting the live response) is implied and consistent with destructiveHint=true.

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?

Front-loads the core purpose and default behaviour, then layers in override, patch, restore, and rejection rules. Every sentence carries information, though the density is close to the upper limit of what stays scannable.

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 default behaviour, patch semantics, reset, and validation constraints. It omits auth/permission requirements and the response of the call itself, which are minor gaps given the annotation coverage.

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 100%, so baseline would be 3, but the description adds semantics the schema lacks — omitted fields retain current values and certain content types are outright rejected. These constraints materially affect how the agent sets the parameters.

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

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Set what a capture-enabled subdomain answers with') and immediately explains the default behaviour (JSON acknowledgement) that gets overridden. An agent can distinguish this from toggle_capture, which only enables/disables capture rather than defining the response.

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 concrete use case ('returning 500 to trigger its retry logic') and states the reset semantics ('Send an empty body to restore the default acknowledgement'). It doesn't explicitly name sibling alternatives like toggle_capture, so it stops short of a 5.

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