Skip to main content
Glama

SkillShield · AI Agent Skill & MCP Supply-Chain Auditor

generate_hardened_agent_policy

Read-only

Generate a least-privilege .claude/settings.json (includeCoAuthoredBy: false, scoped permissions.allow/deny), version-pinned .mcp.json with ${ENV_VAR} secret indirection, and a zero-dependency Node 20+ CI gate script.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_hardened_agent_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
mcp_jsonNoOptional raw mcp.json string to sanitize and version-pin

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is already covered. The description adds useful behavioral detail about what the generated content contains (includeCoAuthoredBy: false, scoped allow/deny, version pinning, ${ENV_VAR} indirection), but leaves a critical ambiguity: whether artifacts are written to disk or merely returned as text, which matters precisely because readOnlyHint is true.

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?

A single front-loaded sentence with the verb first and no filler; each clause names a distinct artifact property. It is dense to the point of being hard to parse in one read, which keeps it from a 5.

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?

With no output schema and no explanation of return values, the description should say what an agent receives back (file contents, patch, or written files). The parameter is also unaddressed. It covers the artifact contents thoroughly but not the call-and-response contract.

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?

There is one optional parameter (mcp_json) with 100% schema description coverage, so the baseline is 3. The description references .mcp.json sanitization conceptually but does not explain what the mcp_json parameter does or how the supplied content is transformed, adding little beyond the schema.

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 ('Generate') and enumerates three concrete artifacts (.claude/settings.json, .mcp.json, CI gate script) with their hardening properties. It is clearly distinguishable from the sibling audit_* tools by the generative versus auditing verb, though the description 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to reach for this tool, when not to, or what alternative to use. Prerequisites (e.g. Node 20+ availability, existing project layout) and sequencing relative to the audit siblings are left entirely to inference.

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.