# Agent card check: read an A2A agent card before you delegate

The agent card check is the read to make before your agent hands a task to another agent over A2A. Give it a domain or a card URL: it fetches the card, checks that it carries what a caller needs (an endpoint, skills, input and output modes, capabilities, security schemes, a named provider), verifies each signature against the signer's published key, scans every human-readable field for invisible characters and instruction-like text, and fingerprints the card so you can pin it. Free, no key.

A card check is evidence gathered at one moment: what the host served when it was fetched and what could be verified about it. A verified signature proves who signed the card, not that the agent behind it is safe, honest or competent; a clean scan is not a finding that the text is safe. Decide from the record, and pin the fingerprint so a later change is noticed.

## Run it

    curl -s "https://www.rightshold.com/v1/agent-card-check?domain=example.com"

Or a card at any URL: https://www.rightshold.com/v1/agent-card-check?url=https://example.com/path/card.json · MCP: check_agent_card {"domain": "example.com"}

## What comes back

- checks: reachable, json, required_fields, protocol, endpoints, skills, security, provider, signature, text_scan — each pass, warn, fail or info with the detail.
- signatures: per JWS, the algorithm, key id, where the key was found and whether it verified.
- scan: invisible-character, hidden-markup and instruction-like findings with the field they are in.
- fingerprint.card_sha256: pin it to notice a change.

## Questions

### What is an A2A agent card?

A JSON document an agent publishes, usually at /.well-known/agent-card.json, saying what it does (its skills), where to call it, which protocol binding it speaks, what input and output it takes and how to authenticate. Other agents read it before delegating a task.

### Why check a card before delegating?

The card is the only description of the remote agent most callers ever see. A check confirms it carries what a caller needs, that its signature verifies against the signer's published key, and that its text holds no hidden characters or instructions aimed at the agent reading it.

### What does a verified signature prove?

That the holder of the named key signed this card as served. It does not prove the agent is safe or competent; it proves who stands behind the description, so a change by anyone else is detectable.

### How do I notice when a card changes?

Pin the fingerprint the check returns (the SHA-256 of the card's canonical JSON). A different fingerprint on a later check means the card changed.
