Skip to main content
Glama

ack_verify_credential

Verify a signed credential JWT by checking its signature, expiration, and optionally trusted issuers. Optionally validate controller claims against the subject's DID document to confirm authenticity.

Instructions

Verify a signed credential JWT (from ack_sign_credential). Checks signature, expiration, and optionally trusted issuers. Set verifyControllerClaims to true to also verify the controller relationship against the subject's DID document (requires did:web or similar — did:key does not support this). Returns {valid: true/false}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jwtYesThe signed credential JWT string
trustedIssuersNoList of trusted issuer DIDs. If provided, the credential issuer must be in this list.
verifyControllerClaimsNoIf true, verify controller claims against the subject's DID document. Requires the subject DID to declare a controller (e.g. did:web). Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does well: it discloses the checks performed (signature, expiration, trusted issuers), the did:key limitation, and the return shape {valid: true/false}. It stops short of describing error behavior or whether validation failures throw vs return false, but the boolean return makes this mostly inferable.

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 concise sentences front-load the core action, then cover key checks, optional behavior, a critical limitation, and the return value. Every sentence adds distinct value with no redundant restatement of the tool name or schema.

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?

Given no output schema and no annotations, the description adequately covers purpose, parameters, constraints, and return shape. Slight gaps around error handling and explicit prerequisites (e.g., needing a resolved DID document) prevent a perfect score, but the tool is callable correctly from the description alone.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds behavioral meaning beyond the schema: it explains that trustedIssuers restricts allowed issuers and that verifyControllerClaims requires controller-supporting DID methods. This enriches the parameter semantics beyond property names and types.

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 action ('Verify'), a specific resource ('signed credential JWT'), and names its producer ('from ack_sign_credential'), which clearly distinguishes it from sibling tools like ack_verify_jwt or ack_verify_payment_receipt. The scope of verification (signature, expiration, trusted issuers) is also explicit.

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 implies when to use the tool by tying it to ack_sign_credential and explains when the optional controller verification is viable or not (did:web vs did:key). It does not explicitly contrast with ack_verify_jwt or state when not to use this tool, but the context is reasonably clear.

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