Skip to main content
Glama

rag-embedding-poisoning-escrow-auditor

audit_ai_inference_escrow

Idempotent

[Private] Proof-of-Inference audit: checks LLM output for token-billing inflation, model-downgrade repetition collapse and required terms. Call with {} for preview. Example: {"billedOutputTokens":32}.

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": "audit_ai_inference_escrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
responseTextNoLLM output text.
forbiddenTermsNoForbidden terms.
mustIncludeTermsNoRequired terms.
billedOutputTokensNoBilled token count.
minUniqueWordRatioNoMin lexical diversity (0-1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / billedOutputTokens / description
      Previous value: -"Number of output tokens billed by the provider."New value: +"Billed token count."
    • addedInput schema / properties / billedOutputTokens / examples
      Added value: +[
      +  32
      +]
    • changedInput schema / properties / forbiddenTerms / description
      Previous value: -"Terms that must not appear in the output."New value: +"Forbidden terms."
    • changedInput schema / properties / minUniqueWordRatio / description
      Previous value: -"Minimum lexical diversity ratio (0 to 1) to detect model downgrade."New value: +"Min lexical diversity (0-1)."
    • changedInput schema / properties / mustIncludeTerms / description
      Previous value: -"Keywords or phrases that must appear in the output."New value: +"Required terms."
    • changedInput schema / properties / responseText / description
      Previous value: -"Generated text output returned by the inference provider."New value: +"LLM output text."
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "responseText"
      -]New value: +[]
  3. Changed6 schema fields changed
    • addedInput schema / properties / billedOutputTokens / description
      Added value: +"Number of output tokens billed by the provider."
    • addedInput schema / properties / forbiddenTerms / description
      Added value: +"Terms that must not appear in the output."
    • addedInput schema / properties / minUniqueWordRatio / description
      Added value: +"Minimum lexical diversity ratio (0 to 1) to detect model downgrade."
    • addedInput schema / properties / mustIncludeTerms / description
      Added value: +"Keywords or phrases that must appear in the output."
    • addedInput schema / properties / responseText / description
      Added value: +"Generated text output returned by the inference provider."
    • changedInput schema / required
      Previous value: -[
      -  "responseText",
      -  "billedOutputTokens"
      -]New value: +[
      +  "responseText"
      +]
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and closed-world scope, so the safety profile is mostly covered. The description adds the non-obvious preview-mode behavior with empty input, which is real value, but it never explains why a read-looking audit is flagged as non-read-only, what side effect occurs, or whether an escrow claim is filed. The '[Private]' marker is unexplained.

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 sentences plus a tiny example, with the core purpose front-loaded before the preview tip. The inline JSON example is slightly noisy but earns its place by showing a minimal valid call shape. No filler sentences.

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 five optional parameters, no output schema and mutation-flagged annotations, an agent still does not know what an audit returns (pass/fail verdict, anomaly scores, findings list) or what effect the non-preview call produces. The preview call and the field-to-check mapping cover a lot, but the result contract is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further by tying checks to inputs: token-billing inflation maps to billedOutputTokens, repetition collapse to lexical diversity, and required terms to mustIncludeTerms. That semantic mapping tells an agent which parameter triggers which finding, which the schema labels alone do not.

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?

The description uses a specific verb and object ('Proof-of-Inference audit: checks LLM output') and enumerates the three things it checks: token-billing inflation, model-downgrade repetition collapse, and required terms. That is enough to separate it from the other audit_*_escrow siblings, which target different domains, though it never names an alternative directly.

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?

It gives one practical usage instruction, 'Call with {} for preview', which usefully tells an agent how to probe the tool cheaply. It does not state when this audit should be run versus the sibling escrow audits, nor any prerequisites, so the guidance is implied rather than explicit.

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.