Skip to main content
Glama

conditional_evaluate

Evaluate HTTP conditional request headers against resource validators in RFC 9110 precedence order to decide 200, 304, or 412. Reports the deciding rule and clause references.

Instructions

Judge one request's preconditions and report the status they decide. Evaluates If-Match, If-Unmodified-Since, If-None-Match and If-Modified-Since in the RFC 9110 section 13.2.2 precedence order, stopping at the first applicable one, and returns status 200|304|412, which rule decided it, and the rule IDs with their clause references.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesHTTP request method
resourceYes
request_headersYesheader name -> value

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
explainYes
rule_appliedYes
weak_comparison_usedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the precedence order applied, the short-circuit behavior ('stopping at the first applicable one'), and the discrete outcome set (200|304|412) plus the deciding rule and clause references. It stops short of stating that evaluation is side-effect free and does not touch the resource.

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 dense sentence that front-loads the action and then the algorithm and outputs in descending priority. Every clause carries information, though the comma-chained precedence/return list is slightly heavy to parse; a second short sentence would have been cleaner without adding length.

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

Completeness4/5

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

For a nested-schema tool with an output schema (so return values need not be explained) and no annotations, the description supplies the algorithm, precedence rule, and outcome set an agent needs. It lacks only the sibling-disambiguation and side-effect/purity statement, which are modest gaps given how self-contained the tool is.

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 coverage is 67%, so the schema documents most of method, resource.etag, resource.last_modified, and request_headers. The description indirectly signals which header names in request_headers are meaningful (the four conditional headers), which is some added semantic value, but it explains nothing about how method or resource interact with those headers.

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?

Names a specific verb+resource: judging one request's precondition headers and reporting the resulting status. The scope (If-Match, If-Unmodified-Since, If-None-Match, If-Modified-Since) clearly separates it from siblings like cache_evaluate, cors_evaluate, and vary_match; an agent can route 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 Guidelines3/5

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

The RFC 9110 §13.2.2 framing implies the context (HTTP conditional request evaluation), so usage is inferable. However, it never states when to prefer this over cache_evaluate or vary_match, nor any when-not condition or prerequisite (e.g. that resource state must be supplied). No explicit routing guidance.

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