Skip to main content
Glama

Edge AI Guardrail

guardrail_safe_completion

Executes a single-turn or multi-turn LLM completion through Edge AI Guardrail with secret/PII redaction, loop protection, RPM limits, and budget caps.

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

Input Schema

NameRequiredDescriptionDefault
modelNo
toolsNo
promptNoSingle-turn user prompt (or pass messages array).
systemNo
guardKeyNo
messagesNoMulti-turn conversation messages ({ role, content }).
providerNo
maxTokensNo
providerApiKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful traits: secret/PII redaction, loop protection, RPM limits, and budget caps. However, it does not say what happens on budget-cap or RPM-limit breach, whether output is redacted too, or what auth (guardKey vs providerApiKey) is required, so the safety/mutation profile remains partly opaque.

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?

One dense sentence with the action front-loaded and no filler. The trailing feature list is informative rather than redundant, though it could have been spent on parameter or return guidance instead.

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

Completeness2/5

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

For a 9-parameter, zero-required, no-annotation, no-output-schema tool, the description covers the pipeline concept but nothing about return shape, error behavior, or parameter roles. An agent could not reliably construct a correct call from this definition alone.

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

Parameters2/5

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

Schema description coverage is only 22% across 9 parameters, so the description must compensate and does not. Critical distinctions such as guardKey versus providerApiKey, when to use prompt versus messages, and the meaning of model, provider, and maxTokens are left entirely undocumented.

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 and resource ('Executes ... LLM completion') plus scope (single-turn or multi-turn) and the guardrail pipeline it runs through. It differentiates itself from siblings like guardrail_sanitize_text and guardrail_check_budget by being the full completion path, though it never names an alternative explicitly.

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 only implied: an agent can infer this is the tool to call when it needs an actual model response rather than a standalone redaction or budget check. There is no explicit 'use this when' or 'use X instead when' statement, and no stated prerequisites for guardKey or providerApiKey.

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.

Resources