Skip to main content
Glama

Verify draft claims against Knowledge

check_knowledge_base_alignment
Read-onlyIdempotent

Check factual claims in a draft against explicitly selected indexed Knowledge bases. Returns supported, contradicted, or not_found with exact saved evidence when available. Uses AI credits and does not publish or edit the draft.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content": "The tool supports offline draft editing.",
      "maxClaims": 5,
      "knowledgeBaseIds": [
        7
      ]
    },
    "name": "check_knowledge_base_alignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesDraft content to check.
contextNoUser task for usage analytics. Omit private details.
llm_modelNoExact model ID from the calling runtime. Send on every call when known. Omit if unavailable.
maxClaimsNoMaximum claims to check. Defaults to 20.
projectIdNoProject ID from list_projects. Omit to use the configured or sole accessible project.
knowledgeBaseIdsYesExplicit allowlist of indexed Knowledge base IDs in the selected project.

Output Schema

NameRequiredDescriptionDefault
dataNodata.checks contains one verdict per extracted claim and any cited Knowledge evidence. _aiCost reports provider cost when available.
successYesTrue when the tool returns normally.
executionTimeNoElapsed time, e.g. 0.12s.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / then / properties / category / description
      Removed value: -"Failure class."
    • removedOutput schema / then / properties / error / description
      Removed value: -"Why the call failed."
    • removedOutput schema / then / properties / errorCode / description
      Removed value: -"Stable failure code."
    • removedOutput schema / then / properties / expected / description
      Removed value: -"Known failure."
    • removedOutput schema / then / properties / statusCode / description
      Removed value: -"HTTP error status."
  2. Changed3 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Non-sensitive task summary for usage analytics."New value: +"User task for usage analytics. Omit private details."
    • changedInput schema / properties / context / examples
      Previous value: -[
      -  "compare landing pages"
      -]New value: +[
      +  "verify claims in the draft"
      +]
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Send on every call when known."New value: +"Exact model ID from the calling runtime. Send on every call when known. Omit if unavailable."
  3. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Task label for usage analytics. Omit private details."New value: +"Non-sensitive task summary for usage analytics."
    • changedOutput schema / properties / data / properties / data / properties / checks / items / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "claim": {
      -        "type": "string"
      -      },
      -      "evidence": {
      -        "type": "null"
      -      },
      -      "verdict": {
      -        "const": "not_found",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "claim",
      -      "verdict",
      -      "evidence"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "claim": {
      -        "type": "string"
      -      },
      -      "evidence": {
      -        "properties": {
      -          "citationId": {
      -            "description": "Stable ID of the evidence citation returned for this result.",
      -            "type": "string"
      -          },
      -          "excerpt": {
      -            "description": "Short passage from the supporting source.",
      -            "type": "string"
      -          },
      -          "locator": {
      -            "description": "Operation-specific object.",
      -            "type": "object"
      -          },
      -          "score": {
      -            "type": "number"
      -          },
      -          "sourceUrl": {
      -            "description": "Original public source URL associated with this result.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "title": {
      -            "description": "Title of the returned item.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "citationId",
      -          "title",
      -          "sourceUrl",
      -          "excerpt",
      -          "score",
      -          "locator"
      -        ],
      -        "type": "object"
      -      },
      -      "verdict": {
      -        "enum": [
      -          "supported",
      -          "contradicted"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "claim",
      -      "verdict",
      -      "evidence"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "type": "null"
      +      },
      +      "verdict": {
      +        "const": "not_found",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "properties": {
      +          "citationId": {
      +            "description": "Stable ID of the evidence citation returned for this result.",
      +            "type": "string"
      +          },
      +          "excerpt": {
      +            "description": "Short passage from the supporting source.",
      +            "type": "string"
      +          },
      +          "locator": {
      +            "type": "object"
      +          },
      +          "score": {
      +            "type": "number"
      +          },
      +          "sourceUrl": {
      +            "description": "Original public source URL associated with this result.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "description": "Title of the returned item.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "citationId",
      +          "title",
      +          "sourceUrl",
      +          "excerpt",
      +          "score",
      +          "locator"
      +        ],
      +        "type": "object"
      +      },
      +      "verdict": {
      +        "enum": [
      +          "supported",
      +          "contradicted"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed20 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "content": "The tool supports offline draft editing.",
      +    "knowledgeBaseIds": [
      +      7
      +    ],
      +    "maxClaims": 5
      +  }
      +]
    • changedInput schema / properties / context / description
      Previous value: -"Call purpose for analytics. Omit private details."New value: +"Task label for usage analytics. Omit private details."
    • addedInput schema / properties / context / examples
      Added value: +[
      +  "compare landing pages"
      +]
    • addedInput schema / properties / llm_model / examples
      Added value: +[
      +  "openai/gpt-5.4-mini"
      +]
    • removedOutput schema / description
      Removed value: -"Tool result. On failure, read error and any recovery message."
    • removedOutput schema / properties / action
      Removed value: -{
      -  "description": "Client response to the project chooser.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / category
      Removed value: -{
      -  "description": "Failure class.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / details
      Removed value: -{
      -  "description": "Error-specific diagnostics.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / error
      Removed value: -{
      -  "description": "Reason the tool call failed.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / errorCode
      Removed value: -{
      -  "description": "Stable failure code, when available.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Duration in seconds with an s suffix."New value: +"Elapsed time, e.g. 0.12s."
    • removedOutput schema / properties / expected
      Removed value: -{
      -  "description": "Known failure condition.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Outcome, required input, or recovery instructions.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / projects
      Removed value: -{
      -  "description": "Choose a projectId and retry.",
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "description": "Project ID to pass as projectId.",
      -        "type": "number"
      -      },
      -      "name": {
      -        "description": "Project name to show in the chooser.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / retryable
      Removed value: -{
      -  "description": "Safe to retry unchanged.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / statusCode
      Removed value: -{
      -  "description": "HTTP status of the failure, if set.",
      -  "type": "integer"
      -}
    • changedOutput schema / properties / success / description
      Previous value: -"True when the tool ran successfully."New value: +"True when the tool returns normally."
    • removedOutput schema / properties / upgrade
      Removed value: -{
      -  "description": "Plan upgrade options.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / url
      Removed value: -{
      -  "description": "Recovery or completion link.",
      -  "type": "string"
      -}
    • addedOutput schema / then / properties
      Added value: +{
      +  "action": {
      +    "description": "Project chooser action.",
      +    "type": "string"
      +  },
      +  "category": {
      +    "description": "Failure class.",
      +    "type": "string"
      +  },
      +  "details": {
      +    "description": "Error-specific diagnostics.",
      +    "type": "object"
      +  },
      +  "error": {
      +    "description": "Why the call failed.",
      +    "type": "string"
      +  },
      +  "errorCode": {
      +    "description": "Stable failure code.",
      +    "type": "string"
      +  },
      +  "expected": {
      +    "description": "Known failure.",
      +    "type": "boolean"
      +  },
      +  "message": {
      +    "description": "Recovery instructions.",
      +    "type": "string"
      +  },
      +  "projects": {
      +    "description": "Choose a projectId and retry.",
      +    "items": {
      +      "properties": {
      +        "id": {
      +          "description": "Pass as projectId.",
      +          "type": "number"
      +        },
      +        "name": {
      +          "description": "Project name to show in the chooser.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "retryable": {
      +    "description": "Safe to retry unchanged.",
      +    "type": "boolean"
      +  },
      +  "statusCode": {
      +    "description": "HTTP error status.",
      +    "type": "integer"
      +  },
      +  "upgrade": {
      +    "description": "Plan upgrade options.",
      +    "type": "object"
      +  },
      +  "url": {
      +    "description": "Recovery or completion link.",
      +    "type": "string"
      +  }
      +}
  5. Changed5 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."New value: +"Call purpose for analytics. Omit private details."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."New value: +"Exact model ID from the calling runtime for usage attribution. Send on every call when known."
    • changedInput schema / properties / projectId / description
      Previous value: -"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."New value: +"Project ID from list_projects. Omit to use the configured or sole accessible project."
    • addedInput schema / properties / projectId / examples
      Added value: +[
      +  42
      +]
    • changedOutput schema / description
      Previous value: -"Read data for the tool result. On failure, read error and any recovery message."New value: +"Tool result. On failure, read error and any recovery message."
  6. Changed16 schema fields changed
    • changedOutput schema / description
      Previous value: -"On success read data. On failure read error and errorCode."New value: +"Read data for the tool result. On failure, read error and any recovery message."
    • addedOutput schema / else
      Added value: +{
      +  "required": [
      +    "data"
      +  ]
      +}
    • addedOutput schema / if
      Added value: +{
      +  "properties": {
      +    "success": {
      +      "const": false
      +    }
      +  }
      +}
    • addedOutput schema / properties / action
      Added value: +{
      +  "description": "Client response to the project chooser.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / properties / data / description
      Previous value: -"Result items or operation data inside this returned payload. Pagination fields describe only this result page."New value: +"Items or result for this call."
    • changedOutput schema / properties / data / properties / data / properties / checks / items / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "claim": {
      -        "type": "string"
      -      },
      -      "evidence": {
      -        "type": "null"
      -      },
      -      "verdict": {
      -        "const": "not_found",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "claim",
      -      "verdict",
      -      "evidence"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "claim": {
      -        "type": "string"
      -      },
      -      "evidence": {
      -        "properties": {
      -          "citationId": {
      -            "description": "Stable ID of the evidence citation returned for this result.",
      -            "type": "string"
      -          },
      -          "excerpt": {
      -            "description": "Short passage from the supporting source.",
      -            "type": "string"
      -          },
      -          "locator": {
      -            "description": "Nested operation-specific fields.",
      -            "type": "object"
      -          },
      -          "score": {
      -            "type": "number"
      -          },
      -          "sourceUrl": {
      -            "anyOf": [
      -              {
      -                "type": "null"
      -              },
      -              {
      -                "type": "string"
      -              }
      -            ],
      -            "description": "Original public source URL associated with this result."
      -          },
      -          "title": {
      -            "description": "Display or content title of this returned item.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "citationId",
      -          "title",
      -          "sourceUrl",
      -          "excerpt",
      -          "score",
      -          "locator"
      -        ],
      -        "type": "object"
      -      },
      -      "verdict": {
      -        "enum": [
      -          "supported",
      -          "contradicted"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "claim",
      -      "verdict",
      -      "evidence"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "type": "null"
      +      },
      +      "verdict": {
      +        "const": "not_found",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "properties": {
      +          "citationId": {
      +            "description": "Stable ID of the evidence citation returned for this result.",
      +            "type": "string"
      +          },
      +          "excerpt": {
      +            "description": "Short passage from the supporting source.",
      +            "type": "string"
      +          },
      +          "locator": {
      +            "description": "Operation-specific object.",
      +            "type": "object"
      +          },
      +          "score": {
      +            "type": "number"
      +          },
      +          "sourceUrl": {
      +            "description": "Original public source URL associated with this result.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "description": "Title of the returned item.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "citationId",
      +          "title",
      +          "sourceUrl",
      +          "excerpt",
      +          "score",
      +          "locator"
      +        ],
      +        "type": "object"
      +      },
      +      "verdict": {
      +        "enum": [
      +          "supported",
      +          "contradicted"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / details / description
      Previous value: -"Additional diagnostics for the reported failure code."New value: +"Error-specific diagnostics."
    • changedOutput schema / properties / errorCode / description
      Previous value: -"Machine-readable failure code for choosing a recovery action."New value: +"Stable failure code, when available."
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Elapsed seconds with s suffix."New value: +"Duration in seconds with an s suffix."
    • changedOutput schema / properties / projects / items / properties / id / description
      Previous value: -"Project ID for projectId."New value: +"Project ID to pass as projectId."
    • changedOutput schema / properties / projects / items / properties / name / description
      Previous value: -"Project name to show when asking the user to choose."New value: +"Project name to show in the chooser."
    • addedOutput schema / properties / projects / items / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • changedOutput schema / properties / statusCode / description
      Previous value: -"HTTP-style status."New value: +"HTTP status of the failure, if set."
    • changedOutput schema / properties / statusCode / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / properties / success / description
      Previous value: -"Whether the call succeeded."New value: +"True when the tool ran successfully."
    • addedOutput schema / then
      Added value: +{
      +  "required": [
      +    "error"
      +  ]
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."New value: +"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."New value: +"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."
  8. Changed14 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log. Exclude private content and personal data."New value: +"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact runtime model ID for usage attribution. Report on every call when known; never guess or ask."New value: +"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."
    • changedInput schema / properties / projectId / description
      Previous value: -"Accessible Atomic project ID from list_projects. Defaults to the configured project."New value: +"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."
    • addedOutput schema / properties / data / description
      Added value: +"data.checks contains one verdict per extracted claim and any cited Knowledge evidence. _aiCost reports provider cost when available."
    • addedOutput schema / properties / data / properties / _aiCost / properties / costDollars / description
      Added value: +"Usage cost reported for this operation in US dollars."
    • addedOutput schema / properties / data / properties / data / properties / checks / items / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "type": "null"
      +      },
      +      "verdict": {
      +        "const": "not_found",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "claim": {
      +        "type": "string"
      +      },
      +      "evidence": {
      +        "properties": {
      +          "citationId": {
      +            "description": "Stable ID of the evidence citation returned for this result.",
      +            "type": "string"
      +          },
      +          "excerpt": {
      +            "description": "Short passage from the supporting source.",
      +            "type": "string"
      +          },
      +          "locator": {
      +            "description": "Nested operation-specific fields.",
      +            "type": "object"
      +          },
      +          "score": {
      +            "type": "number"
      +          },
      +          "sourceUrl": {
      +            "anyOf": [
      +              {
      +                "type": "null"
      +              },
      +              {
      +                "type": "string"
      +              }
      +            ],
      +            "description": "Original public source URL associated with this result."
      +          },
      +          "title": {
      +            "description": "Display or content title of this returned item.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "citationId",
      +          "title",
      +          "sourceUrl",
      +          "excerpt",
      +          "score",
      +          "locator"
      +        ],
      +        "type": "object"
      +      },
      +      "verdict": {
      +        "enum": [
      +          "supported",
      +          "contradicted"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "claim",
      +      "verdict",
      +      "evidence"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / data / properties / checks / items / description
      Removed value: -"Nested operation-specific fields."
    • removedOutput schema / properties / data / properties / data / properties / checks / items / type
      Removed value: -"object"
    • addedOutput schema / properties / details / description
      Added value: +"Additional diagnostics for the reported failure code."
    • addedOutput schema / properties / error / description
      Added value: +"Reason the tool call failed."
    • addedOutput schema / properties / errorCode / description
      Added value: +"Machine-readable failure code for choosing a recovery action."
    • addedOutput schema / properties / message / description
      Added value: +"Outcome, required input, or recovery instructions."
    • addedOutput schema / properties / projects / items / properties / name / description
      Added value: +"Project name to show when asking the user to choose."
    • addedOutput schema / properties / success / description
      Added value: +"Whether the call succeeded."
  9. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description is consistent with them while adding genuinely new traits: it consumes AI credits and returns one of three outcome categories with saved evidence. It does not quantify credit cost or note limits on how many claims can be evaluated per pass beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and target, followed by outcome shape and the cost/side-effect caveat. No filler wording; every clause carries information.

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?

With annotations covering safety, an output schema covering return shape, and full parameter documentation, the description supplies the remaining decision-relevant facts: credit consumption and the no-edit guarantee. Nothing an agent needs to select or call this tool correctly is missing.

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 description coverage is 100%, so all six parameters (including content, knowledgeBaseIds, maxClaims, llm_model, projectId) are already documented in the schema. The phrase 'explicitly selected' reinforces the knowledgeBaseIds allowlist semantics but adds no format or constraint detail beyond what the schema provides.

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 resource ('Check factual claims in a draft') plus the exact target of the check ('explicitly selected indexed Knowledge bases'), which separates it from generic siblings like search_knowledge or verify_webflow_content. The scope (selected bases only, draft only) is unambiguous.

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?

The description makes clear this is for claims-checking against a chosen allowlist of Knowledge bases, and 'does not publish or edit the draft' bounds the action. It does not name an alternative tool or state when-not to use it, so it stops short of explicit routing guidance.

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