Skip to main content
Glama

set_key_origins

Idempotent

Replace the hostnames a publishable key may be used from (and optionally the dev flag). Workspace owner only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key_id": "<key_id>",
      "origins": "<origins>"
    },
    "name": "set_key_origins"
  }
}

Input Schema

NameRequiredDescriptionDefault
devNoAlso allow localhost on any port.
key_idYes
originsYesThe full new list of allowed hostnames; replaces the old one.

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 already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so safety is covered. The description adds value beyond them by disclosing the permission requirement (workspace owner) and the replacement semantics of origins, though it says nothing about validation failures or what an invalid hostname does.

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?

One front-loaded sentence with the verb first and the permission constraint trailing; the parenthetical for the optional flag is efficient. No sentence 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 3-parameter mutation tool with no output schema, the description covers purpose, auth requirement, and replace-not-merge semantics, and the dev parameter's schema text clarifies that origins are bare hostnames without ports. The remaining gap is hostname format details (wildcards, schemes) and error behavior.

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 67%: origins and dev already carry descriptions, and key_id is undocumented in both places. The description reinforces the full-replacement semantics and flags dev as optional, but adds no format guidance (scheme, port, wildcard) beyond the schema.

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?

The description names a precise verb ('Replace') and a precise resource ('the hostnames a publishable key may be used from'), plus the optional dev flag. It is unambiguously distinct from the key-management siblings (create_key, revoke_key, list_keys) without needing to name them.

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?

'Workspace owner only' supplies a real prerequisite for calling it, and 'Replace ... the full new list' establishes that this is an overwrite operation rather than an append, which is the key usage distinction. It stops short of naming alternatives or when-not-to-use cases, so it falls just 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