Skip to main content
Glama
mdfifty50-boop

Agent Security MCP

validate_scope_contract

Check if an agent action complies with its scope contract by validating tool usage against allowlists, file access against permitted paths, and boundary constraints (no_network, read_only, no_exec, no_secrets).

Instructions

Check if an agent action complies with its scope contract. Validates tool usage against allowlists, file access against permitted paths, and boundary constraints (no_network, read_only, no_exec, no_secrets).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe action to validate against the scope contract
scope_contractYesThe agent scope contract defining permitted actions
Behavior2/5

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

With no annotations, the description carries full transparency burden. It describes what is validated but omits critical behavioral details: whether it is read-only, what happens on violation (return value, error, side effects), and performance implications. This is insufficient for an agent to predict outcomes.

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 efficiently convey purpose and scope. Every word adds value, no redundancy or filler. Well-structured for quick parsing.

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

Completeness3/5

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

Given nested objects and validation complexity, the description covers the 'what' but not the 'how' (output format, error handling). Missing output schema means agents need to guess return structure. Adequate but not fully complete.

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% with descriptions for both parameters. The tool description adds overall context but no new parameter details. Baseline 3 is appropriate as schema already documents parameters.

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?

The description clearly states the tool verifies compliance of an agent action with its scope contract, listing specific checks (tool allowlists, file paths, boundary constraints). This distinguishes it from sibling tools like health_check or scan_mcp_config which focus on different security aspects.

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?

The description implies usage for validation but does not explicitly state when or when not to use it. It contrasts with siblings only implicitly through purpose. No guidance on prerequisites or alternative tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mdfifty50-boop/agent-security-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server