Skip to main content
Glama

Set an agent's governance profile

set_agent_governance_profile

Opt an agent in to a governance profile: its ACTIVE policies apply BESIDE the agent's own (nothing is removed). Omit slug to opt out.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "set_agent_governance_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoThe profile slug; omit to stop using one.
agent_idYesThe agent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false with destructiveHint=false, so the bar is lower, and the description still adds meaningful context: policies are additive and nothing is removed. The opt-out-by-omission behavior is also disclosed. It does not say whether the profile must already exist or when the new policies take effect.

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 short sentences with the additive semantics front-loaded and the opt-out clause last. Nothing is wasted and the parenthetical "nothing is removed" earns its place by preventing a wrong assumption.

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, non-destructive setter with full schema coverage and annotations, the description covers the essential behavior. Minor gaps remain around profile existence requirements and effective timing, but no output schema is needed here and nothing critical is missing.

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% and both parameters are documented there, so the baseline is 3. The description's "omit slug to opt out" restates the schema's own "omit to stop using one" rather than adding new meaning, and agent_id is only implied as the target.

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 and resource ("opt an agent in to a governance profile") and immediately clarifies the key semantic that the profile's ACTIVE policies apply beside the agent's own. It distinguishes this additive behavior from the replace-style operations implied by siblings like set_governance_policies or update_governance_profile, though it never names a sibling explicitly.

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 clear usage context: call with a slug to opt in, omit the slug to opt out — effectively covering both the when and the when-not case. It stops short of naming an alternative tool for related tasks such as attaching individual policies.

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