Skip to main content
Glama

Porch

Set response

set_response
Idempotent

Choose what Porch sends back to callers, for the whole inbox or a sub-path: status, headers and body. Useful for webhook verification handshakes, or a friendly page after an OAuth redirect (or a 302 with a Location header). Pages are served in a browser sandbox: scripts and forms do not run. Pass reset: true to go back to the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoResponse body (up to 64 KB).
resetNoRemove the response set for path_prefix and fall back to the default.
statusNoHTTP status code (default 200).
headersNoExtra response headers, e.g. {"Location": "https://example.com/done"}.
inbox_keyYesThe inbox_key returned by create_inbox (starts with "porch_sk_").
path_prefixNoApply to this path and everything below it (default "/", the whole inbox). The longest matching prefix wins.
content_typeNoContent-Type of the body (default text/plain, or text/html if the body starts with "<").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
responseYes
applies_toYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare the mutation/idempotency profile, and the description adds traits the annotations cannot express: pages render in a browser sandbox where scripts and forms do not run, and reset:true restores the default. It omits permission/auth requirements and what happens to in-flight requests, but the sandbox constraint is real added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with purpose, then use cases, then the sandbox caveat and reset. Every sentence carries information; nothing is padding.

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?

With an output schema, full parameter coverage, and annotations present, the description supplies the remaining decision-relevant context: what it configures, why you'd use it, and the sandbox limitation. Only auth/permission expectations and failure behavior are left implicit.

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 coverage is 100%, so the schema already documents body size, status range, header shape, path_prefix matching, and reset semantics. The description's mentions of reset and headers largely restate schema text, adding only the framing of inbox-wide vs sub-path application — baseline 3.

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 precise verb+resource ('Choose what Porch sends back to callers') plus the exact scope (whole inbox or a sub-path) and the configurable surface (status, headers, body). This is unmistakably distinct from every sibling, all of which read or manage requests/inboxes rather than shape the reply.

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 concrete when-to-use scenarios (webhook verification handshakes, OAuth redirect landing page, 302 with Location header) and the reset escape hatch. It stops short of naming an alternative tool or an explicit when-not-to-use condition, so it is clear context without exclusions.

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