Skip to main content
Glama

Set a profile's API keys

set_governance_profile_keys

REPLACE which API keys may use a profile at the Governance Gateway (they also need the api.governance.check scope). An empty list lets any of the organization's gateway keys use it.

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": {
      "slug": "<slug>",
      "api_key_ids": "<api_key_ids>"
    },
    "name": "set_governance_profile_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe profile.
api_key_idsYesAPI key ids (key_…); empty = any gateway key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world mutation, and the description adds real context: the operation replaces rather than appends to the existing key list, requires the api.governance.check scope on the keys, and that an empty array means unrestricted access by org gateway keys. However, the capped "REPLACE" wording sits in tension with destructiveHint=false since existing bindings are overwritten, and the description says nothing about the response or what happens to keys lacking the scope.

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?

Two sentences, zero filler, with the replace semantics front-loaded and the empty-list behavior placed correctly after it. The parenthetical prerequisite is compact and does not interrupt the primary statement.

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 two-parameter mutation with no output schema and annotations already covering the safety profile, the description covers replacement semantics, the empty-list case, and the scope prerequisite. Only failure behavior for keys missing the scope is left unstated.

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 both parameters (slug, api_key_ids) are already documented, including the 'empty = any gateway key' semantics that the description repeats. The only genuine addition is the api.governance.check scope requirement on the keys themselves, which the schema does not convey.

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?

The description gives a specific verb in caps ("REPLACE which API keys may use a profile") plus the resource and the system it lives in (Governance Gateway), so the operation is unambiguous. It does not explicitly differentiate itself from adjacent set_* governance tools such as set_governance_owners or set_agent_governance_profile, leaving that separation to the resource naming.

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 rather than stated: it tells you the effect of an empty list and the required api.governance.check scope, which are useful conditions for a successful call. There is no explicit when-to-use versus when-not guidance and no named alternative for related operations.

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