Skip to main content
Glama

Tinplate AI Agent Security & Guardrails MCP

tinplate_agent_policy_guard

Read-onlyIdempotent

Evaluate agent tool invocations offline in volatile RAM against least-privilege RBAC rules, human-approval gates, loop caps, outbound secret/PII leakage checks, and the Lethal Trifecta rule. (Endpoint: POST /v1/agent-policy-guard)

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": {
      "action": "<action>",
      "policy": "<policy>"
    },
    "name": "tinplate_agent_policy_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesCandidate agent tool action to evaluate before execution.
policyYesLeast-privilege RBAC, escalation, loop-limit, and Lethal Trifecta policy.
session_historyNoRecent in-session tool actions used to detect loops and Lethal Trifecta escalation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / action / properties / agent_role / example
      Removed value: -"support-reader"
    • removedInput schema / properties / action / properties / arguments / example
      Removed value: -{
      -  "q": "enterprise refund policy"
      -}
    • removedInput schema / properties / action / properties / human_approved / example
      Removed value: -false
    • removedInput schema / properties / action / properties / operation / example
      Removed value: -"read"
    • removedInput schema / properties / action / properties / resource / example
      Removed value: -"kb://public-docs/refunds"
    • removedInput schema / properties / action / properties / tool / example
      Removed value: -"docs_search"
    • removedInput schema / properties / action / properties / trust_level / example
      Removed value: -"trusted"
    • removedInput schema / properties / policy / example
      Removed value: -{
      -  "block_lethal_trifecta": true,
      -  "block_secrets_in_network_args": true,
      -  "default_effect": "deny",
      -  "max_calls_per_tool": 20,
      -  "max_identical_repeats": 3,
      -  "max_total_actions": 100,
      -  "require_approval_operations": [
      -    "delete",
      -    "exec",
      -    "admin"
      -  ],
      -  "rules": [
      -    {
      -      "effect": "allow",
      -      "id": "allow-support-read",
      -      "operations": [
      -        "read"
      -      ],
      -      "roles": [
      -        "support-reader"
      -      ],
      -      "tools": [
      -        "docs_*"
      -      ]
      -    }
      -  ]
      -}
    • removedInput schema / properties / session_history / example
      Removed value: -[]
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description still adds real value by disclosing that evaluation is offline and RAM-volatile (no persisted state) and by naming the concrete rule set enforced. It stops short of describing the verdict/decision response, which matters since no output schema exists.

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?

Two tight sentences with the core behavior front-loaded and zero filler. The trailing endpoint parenthetical is mildly extraneous but useful for routing, so it does not undermine an otherwise efficient definition.

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?

This is a nested, three-parameter policy engine with no output schema, so the description must carry the burden of explaining what a decision looks like and what happens on deny or require_approval. It enumerates inputs but says nothing about the verdict shape, leaving a meaningful gap for a firewall-style tool.

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 every field including action.tool, trust_level, and the policy knobs is already documented in the schema. The description merely echoes the rule categories (loop caps, secret checks, Lethal Trifecta) at a high level without adding format or interaction detail, so the baseline 3 applies.

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?

A specific verb ('Evaluate') plus resource ('agent tool invocations') and an enumeration of the rule families applied (RBAC, approval gates, loop caps, secret/PII checks, Lethal Trifecta). It clearly differentiates itself from data-transforming siblings like tinplate_pii_redactor, though it never names tinplate_tool_call_validator, the nearest alternative, so a full 5 is not warranted.

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?

Usage is implied rather than stated: the schema calls the action a 'candidate' evaluated 'before execution' and the description says the evaluation happens 'offline in volatile RAM'. There is no explicit when-to-use, when-not-to-use, or comparison against the sibling validator tools, leaving the agent to infer timing and selection.

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.