Skip to main content
Glama

Validate a FactLot fact

fact_validate
Read-onlyIdempotent

Check one FactLot fact against the published fact schema (spec/schemas/fact.json): subject URN, dotted predicate, as_of date, provenance, optional rights; unknown fields are rejected at every level. Rules: every fact except a computed one cites at least one source (an inferred fact cites the evidence it was inferred from); a computed fact names its formula or cites a source; valid_from is not after valid_to; a source span does not end before it starts. For Ingest predicates (lease.expiration_date, lease.rentable_area_sf, lease.base_rent_schedule, ...) the value must have the predicate's shape and every source quote must state the value, by the same written-form rules as doc_verify_facts (a quote saying "2,500 square feet" does not support 1000). Not checked: that the quote is in the document, that the document or sha256 exists, that supersedes IDs exist, and quotes for other predicates; doc_verify_facts with the document's pages checks the quote. Returns { valid, issues }. Meant for checking facts before they are stored or shared.

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": {
      "fact": "<fact>"
    },
    "name": "fact_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
factYesA FactLot fact: subject, predicate, value, as_of, provenance (with sources), optional rights.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare this is a read-only, idempotent, non-destructive, closed-world check, so the safety profile is fully covered. The description adds real behavioral detail beyond that — the validation rule set, the rejection of unknown fields, and the explicit boundary of what it does not verify — though it doesn't say whether issues are blocking, ordered, or how many are returned.

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?

Well front-loaded: purpose first, then "Rules:", then "Not checked:", then return shape and intended use. It is dense but every clause carries information; the Ingest-predicate sentence with its parenthetical example and trailing ellipsis is the one passage that reads as a run-on and could be split.

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

Completeness5/5

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

Despite no output schema, the description states the return shape ("{ valid, issues }"), lists positive and negative rules, and defines the tool's verification boundary. For a single-parameter validator, nothing an agent needs to decide whether to call it, or to interpret the result, 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?

The input schema is a bare object with additionalProperties {}, so it contributes almost no semantics on its own. The description compensates by naming the fact's fields (subject URN, dotted predicate, as_of, provenance, optional rights) and the constraints among them (source citation rules, valid_from/valid_to ordering, source span ordering, Ingest predicate value shapes), though for the full nested shape it defers to spec/schemas/fact.json.

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?

"Check one FactLot fact against the published fact schema (spec/schemas/fact.json)" gives a specific verb, a specific resource, and even the authoritative schema location. The scope is narrowed to a single fact, and the field list that follows confirms exactly what is being validated, so an agent can distinguish it from package-level siblings like fact_package_verify.

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

Usage Guidelines5/5

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

The description explicitly states the intended moment of use ("before they are stored or shared"), enumerates what is deliberately NOT checked (quote presence in document, document/sha256 existence, supersedes IDs, non-Ingest predicate quotes), and routes the agent to doc_verify_facts when quote-in-document checking is needed.

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.