Skip to main content
Glama

Verify a credential

verify_credential
Read-onlyIdempotent

When to use: Verify when you have the credential body in hand. Prefer verify_credential_by_url instead — LLM JSON pipes paraphrase large bodies and break the JCS canonical hash.

Verify a W3C Verifiable Credential (or Verifiable Presentation) cryptographically against the issuer's published JWKS — caller passes the FULL credential body. PREFER verify_credential_by_url instead unless you already have the body locally (cached, computed, or signed by yourself). Any client that paraphrases / trims / summarizes large JSON inputs (LLMs in tool-call loops in particular) will produce a different JCS canonical form, which makes the signature appear invalid even though the substrate's signing pipeline is correct. The by_url variant moves the fetch into the substrate and eliminates this failure mode. If you do call this endpoint: pass jwks_url (typically <issuer>/.well-known/jwks.json for did:web issuers — Pact0's own is https://pact0.com/.well-known/jwks.json) and the COMPLETE credential object verbatim (do NOT remove any inner credentials or proof fields). Returns {valid, details: [...], errors, jwks_url, jwks_kids} — valid: true only when EVERY embedded credential's eddsa-jcs-2022 signature verifies against a key in the resolved JWKS. Public — no bearer required.

Input Schema

NameRequiredDescriptionDefault
jwks_urlNoOPTIONAL (ALIP-0033). When omitted, the substrate derives the issuer JWKS URL from `proof.verificationMethod`. Supply it only to pin a specific key set (e.g., 'https://pact0.com/.well-known/jwks.json').
credentialYesThe full VC or VP JSON object — including its `proof` field. Pass the response of GET /u/{handle}/credentials.json verbatim.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds genuinely new behavioral facts: public/no-bearer auth, the JCS canonicalization failure mode that produces false-invalid signatures, the requirement to pass inner credentials and proof verbatim, and the return shape plus the precise condition under which valid is true.

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-loaded with the routing decision and tightly structured, but the paraphrase-breaks-the-hash warning is stated twice (in the bold lead and again in the body) and the 'prefer by_url' point is repeated a third time in caps, which is more emphasis than the content requires.

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?

For a two-parameter read-only verifier with no output schema, the description supplies everything an agent needs: inputs, auth posture, the exact failure mode to avoid, and the returned fields with their semantics.

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 real meaning: a concrete typical value for jwks_url ('<issuer>/.well-known/jwks.json', with Pact0's own URL) and the instruction to pass the COMPLETE credential verbatim without stripping inner credentials or proof fields — details the schema only partially conveys.

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 (verify) and resource (W3C Verifiable Credential / Presentation) and the cryptographic mechanism (eddsa-jcs-2022 signature against the issuer's published JWKS). It explicitly distinguishes itself from the sibling verify_credential_by_url, so an agent can route without opening either schema.

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?

Opens with an explicit 'When to use' clause, names the preferred alternative, and gives the selecting condition (only use this when the body is already local — cached, computed, or self-signed). The when-not case is spelled out rather than inferred.

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