Skip to main content
Glama
WebDAV Knowledge MCP

WebDAV Knowledge MCP

by EI-robot

finalize_rag_answer

Verifies selected evidence excerpts and produces a cited answer; unsupported or insufficient selections trigger a refusal.

Instructions

Verify selected excerpts and produce an answer with source citations.

Supply up to six evidence_id/quote pairs from retrieve_rag_context. Quote exact text. Use [] if the passages cannot answer the question. Unsupported selections yield a refusal. Present the returned answer without adding claims.

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": {
      "question": "<question>",
      "path": "<path>",
      "selections": "<selections>"
    },
    "name": "finalize_rag_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
questionYes
selectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses refusal semantics ('Unsupported selections yield a refusal'), the six-pair ceiling, and an output-handling constraint ('present the returned answer without adding claims'), but says nothing about idempotency, side effects, cost, or what happens on malformed quotes.

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?

Front-loads the purpose, then gives input rules, then a failure mode, then output handling — a logical order with little waste. A couple of sentences ('Quote exact text', 'Unsupported selections yield a refusal') are terse enough to be slightly clipped rather than padded.

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?

Covers selection construction and refusal behavior, but with no output schema and no annotations, the description leaves the shape of the returned answer/citations and the meaning of the required `path` parameter unaddressed. An agent would still have to guess at two of three inputs.

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?

With 0% schema description coverage, the description must compensate, and it does well for the critical parameter: selections must come from retrieve_rag_context, quotes must be exact text, and the cap is six (an empty array signals 'cannot answer'). The `question` and `path` parameters remain entirely unexplained in both schema and description.

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

Purpose5/5

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

States a specific verb and outcome ('Verify selected excerpts and produce an answer with source citations') and explicitly ties the input to the sibling tool retrieve_rag_context. An agent can distinguish this from retriever tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Makes the workflow condition clear ('Supply up to six evidence_id/quote pairs from retrieve_rag_context') and gives a fallback path ('Use [] if the passages cannot answer the question'). It does not explicitly forbid calling this without prior retrieval, so it stops short of full when/when-not guidance.

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