Skip to main content
Glama

Save a project's policy

save_policy
DestructiveIdempotent

Saves a new Advanced mode policy on one of the user's projects, replacing the current one. Returns the previous policy so it can be put back. Live traffic uses the new policy within about 5 minutes. Only for Advanced mode text projects. Needs owner, admin or editor access.

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": {
      "project_id": "<project_id>",
      "policy": "<policy>"
    },
    "name": "save_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYesThe policy in plain English, up to 1000 characters.
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: discloses that the current policy is overwritten, that the previous policy is returned for rollback, that live traffic shifts within ~5 minutes, and what permission level is required. Those are exactly the mutation-side effects and latency facts an agent needs before firing a destructive write.

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?

Five short sentences, each delivering a distinct fact — action, reversibility, propagation delay, mode restriction, permissions — with the core behavior front-loaded. No repetition of the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by stating that the previous policy is returned and can be restored. Combined with access requirements and propagation timing, nothing material is missing for a two-parameter destructive write.

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%, with both parameters documented including the 1000-character limit and the source of project_id, so the schema already carries the semantics. The description adds no further parameter guidance such as policy formatting beyond what the schema states.

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?

Specific verb and resource ('Saves a new Advanced mode policy on one of the user's projects') with the key qualifier that it replaces the existing one. The 'Only for Advanced mode text projects' line scopes it decisively so an agent can tell it apart from word-rules or plain-mode tooling.

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 preconditions ('Only for Advanced mode text projects', 'Needs owner, admin or editor access') that tell the agent when the call will succeed or fail. It does not name an alternative such as test_policy_on_project as a recommended precursor, so the when-to-use-instead-of-siblings link is implicit rather than explicit.

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.