Skip to main content
Glama

environment_protect

Protect a Project's own Environment so it cannot be removed, or unprotect it. Branches and PR Environments cannot be Protected. May stop to ask a human to approve.

Input Schema

NameRequiredDescriptionDefault
projectNoProject name.
approvalNoThe ID of an approval a person granted. Send it when calling this tool again after it answered approval_required.
protectedYestrue to refuse removing this Environment until it is unprotected, false to allow it.
environmentNoEnvironment name, e.g. production.

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 and destructiveHint=false, so the mutation/safety profile is partly covered. The description adds genuinely new behavioral context the annotations lack: the tool 'May stop to ask a human to approve,' signalling a mid-call approval gate that pairs with the approval parameter. It doesn't spell out permission requirements or reversibility beyond the protect/unprotect framing.

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?

Three short, front-loaded sentences with no filler: the action, the scope exclusion, and the approval caveat. Every sentence carries distinct information.

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 reversible settings toggle with no output schema and full schema description coverage, the description supplies the essentials: scope, exclusions, and the human-approval behavior. Minor gaps remain around permissions/idempotency, but nothing critical to invoking it correctly 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%, so the schema already documents project, environment, approval, and protected (including the true/false semantics). The description only paraphrases protect-vs-unprotect and adds no format or constraint detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('protect a Project's own Environment ... or unprotect it') and immediately bounds scope by excluding Branches and PR Environments, which distinguishes it from siblings like environment_pr and environment_remove. An agent can tell what it does without opening the schema.

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 a clear when-not ('Branches and PR Environments cannot be Protected') and hints at the approval flow, so the agent knows this applies only to a project's own Environment. It stops short of naming an alternative sibling to use for branches/PR envs, so no explicit routing.

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.