Skip to main content
Glama

Set gateway scope headers

set_gateway_scope_headers
DestructiveIdempotent

Store the header set an organization-held static_headers scope calls its downstream with, replacing any stored set. Values are sealed at once and never returned by any tool or page; only the gateway reads them. Ask the person for the values rather than inventing them.

Input Schema

NameRequiredDescriptionDefault
scopeYesAn organization-held scope whose auth_mode is static_headers.
headersYesThe complete header set the gateway sends the downstream server, for example {Authorization: 'Bearer ...'}. It replaces any stored set.
server_slugYesThe server's slug, from list_gateway_servers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare destructiveHint and idempotentHint, but the description adds the crucial context the agent cannot get elsewhere: values are sealed immediately, are never returned by any tool or page, and only the gateway reads them. It also discloses that the write replaces the entire stored set, which matches the idempotent hint.

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 short sentences with the write/replace semantics front-loaded, then the secrecy property, then the practical sourcing rule. No sentence is redundant.

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?

Covers the destructive-write semantics, the irreversibility of reading values back, and where the values must come from — enough for a correct invocation without an output schema. It stops short of noting permission requirements or failure behavior for a non-static_headers scope.

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 is 3, and the description earns an extra point by clarifying that the headers object is a complete replacement set and that submitted values are write-only — meaning the agent must capture them before submitting. It doesn't add format or size constraints beyond the schema example.

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: storing a header set for an organization-held static_headers scope, replacing any stored set. The static_headers qualifier distinguishes it from set_gateway_scope_oauth_client, though that sibling is never named outright.

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 by the auth_mode constraint (only static_headers scopes) and the instruction to ask the person for values rather than inventing them. However, it never explicitly says when to choose this over set_gateway_scope_oauth_client or what to do if the scope has a different auth_mode.

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.