Skip to main content
Glama

agent_update

Change an agent record: tools, status, standing procedure, lens, focus or spend cap. Needs org:admin; agent seats are refused, and the manager's record is fixed (no cap on the manager). warnings lists tool patterns this deployment will not grant (shell, when the deployment has not turned it on).

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>"
    },
    "name": "agent_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesAgent record slug (agent-<label> or <label>)
agentNoOverride agent attribution label
focusNoStrategic focus binding; {} clears
modelNoNew model pin; empty string clears it (default)
statusNoactive, paused (starts no runs) or archived
budget_usdNoNew spend cap in USD. Omit to leave it. "0" blocks every new run. Set with budget_period when the agent has no cap yet.
namespacesNoMemory lens containers; [] clears
persona_mdNoPrivate standing brief; empty string clears
mcp_serversNoReplace the agent's external MCP servers (#1264); [] clears. Objects with name, url (https), optional tools (allowlist), secret (vault secret name, never a token) and enabled. Offered only when the run's tool allowlist grants them (all, mcp, or ext_<name>__*)
skill_slugsNoStanding skills; [] clears
clear_budgetNoRemove the spend cap. Do not also pass budget_usd or budget_period.
display_nameNoNew display name
github_grantNoReplace the agent's GitHub grant (#1379): {repos: [owner/repo, ...], read, write, destructive}, each level off, auto or ask. To revoke, set the levels to off. Only a person can set it
budget_periodNoday, week (Monday) or month, UTC. Omit to leave it.
tool_patternsNoNew tool patterns; [] clears them (deployment default). The result's warnings name any pattern this deployment will not grant, such as shell when the deployment has not turned shell on
playbook_slugsNoStanding playbooks; [] clears
clear_github_grantNoRemove the GitHub grant so the agent follows the org default again. Do not also pass github_grant.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tool_patterns / description
      Previous value: -"New tool patterns; [] clears them (deployment default)"New value: +"New tool patterns; [] clears them (deployment default). The result's warnings name any pattern this deployment will not grant, such as shell when the deployment has not turned shell on"
  2. Changed2 schema fields changed
    • addedInput schema / properties / clear_github_grant
      Added value: +{
      +  "default": false,
      +  "description": "Remove the GitHub grant so the agent follows the org default again. Do not also pass github_grant.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / github_grant
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Replace the agent's GitHub grant (#1379): {repos: [owner/repo, ...], read, write, destructive}, each level off, auto or ask. To revoke, set the levels to off. Only a person can set it"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / mcp_servers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Replace the agent's external MCP servers (#1264); [] clears. Objects with name, url (https), optional tools (allowlist), secret (vault secret name, never a token) and enabled. Offered only when the run's tool allowlist grants them (all, mcp, or ext_<name>__*)"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / budget_period
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "day",
      +        "week",
      +        "month"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "day, week (Monday) or month, UTC. Omit to leave it."
      +}
    • addedInput schema / properties / budget_usd
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "New spend cap in USD. Omit to leave it. \"0\" blocks every new run. Set with budget_period when the agent has no cap yet."
      +}
    • addedInput schema / properties / clear_budget
      Added value: +{
      +  "default": false,
      +  "description": "Remove the spend cap. Do not also pass budget_usd or budget_period.",
      +  "type": "boolean"
      +}
  5. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and delivers real behavioral context: the authorization level, two classes of refused targets, the fixed manager record, and that the response's warnings list tool patterns the deployment will not grant (e.g., shell). It does not say whether changes are reversible or what an unauthorized call returns, which keeps it below a 5.

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

Conciseness4/5

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

Front-loaded with the action and the affected surfaces, then the access and refusal constraints. It is a single dense paragraph with little waste, though the warnings/shell explanation partially duplicates the tool_patterns parameter description.

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 17-parameter mutation tool with no annotations, the description covers the critical non-schema facts an agent needs: admin scope, refused targets, and the manager exception. Return values need not be explained because an output schema exists.

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 description coverage is 100%, so the baseline is 3; the schema already documents clearing semantics ('[] clears', empty string clears, omit to leave) and mutually exclusive pairs like budget_usd/clear_budget. The description's field list and its warnings/shell note mostly restate what the schema already carries.

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?

Opens with a specific verb+resource ('Change an agent record') and enumerates the mutable surfaces (tools, status, standing procedure, lens, focus, spend cap). It is clearly distinguishable from sibling tools like agent_create and agent_get by name and semantics, though it never explicitly contrasts itself with 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?

Provides strong preconditions and exclusions: requires org:admin, refuses agent seats, and refuses the manager's record (including a cap on the manager). It stops short of stating when to reach for this versus agent_create or agent_run_* siblings, so an agent gets context but not an explicit alternative routing rule.

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.