Skip to main content
Glama

preview_request

Read-only

Prepares a draft from a text request and identifies lines that need review before order intake.

Instructions

Prepare a draft from a text request and identify lines needing review.

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": {
      "request": "<request>"
    },
    "name": "preview_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
draftYes
recognizedYes
unresolvedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior3/5

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

readOnlyHint=true and openWorldHint=false already tell the agent this is a closed, non-mutating operation, and the description is consistent with that. It adds that lines are flagged for review, which is genuine behavioral value beyond the annotations. It omits input limits (2400-char max), validation failure behavior, and whether the draft can be saved — gaps the annotations cannot cover.

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 sentence, front-loaded with the action, no filler or repetition. It is efficient, though efficiency here is partly the result of saying too little rather than of tight editing.

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?

An output schema exists, so return values need no explanation, but the nested request object is entirely undescribed and the description never says what a 'draft' is drawn from or what 'lines needing review' means. For a preview/validation tool with a required structured payload, this leaves an agent guessing about the request shape and the purpose of the preview step.

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 0%, so the description carries the full burden and largely drops it: it only hints that 'text' is the input. The required customer_code pattern, the optional comment field, and the length bounds are all left undocumented in both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb and an outcome — 'Prepare a draft from a text request' plus 'identify lines needing review' — so an agent can tell it produces a preview with flagged lines. However, 'draft' is never grounded in a domain (order? quote? ticket?), and nothing distinguishes it from the catalog/stock siblings. Purpose is implied rather than stated.

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?

There is no guidance on when to call this versus doing something else, no prerequisites, and no statement that 'preview' means nothing is persisted. The agent must infer from the name alone that this is a pre-submission check step.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools