CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/a2a-agent-card

Validate and build A2A protocol Agent Cards (v1.0.0 field rules) with JSON-path issues, media type and URL checks, and the well-known discovery URL. Use when the user writes, reviews or debugs an agent-card.json.

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

validation-rules.mdreferences/

Agent Card validation rules (A2A v1.0.0)

Reference for scripts/a2a_agent_card.py validate. Issues are sorted by path, then code.

Issue codes

CodeSeverityMeaning
missingerrora required field is absent
typeerrorthe value has the wrong JSON type (booleans are not strings)
emptyerrora string is empty or only whitespace
invalid_urlerrornot https, or http for a host other than localhost, 127.0.0.1, ::1; or no host
invalid_media_typeerrornot of the form type/subtype
duplicate_skill_iderrortwo skills share an id
unknown_fieldwarninga field this validator does not know (top level, interface, capabilities, skill, provider)
unknown_bindingwarningprotocolBinding is not JSONRPC, GRPC or HTTP+JSON

Fields

Top level (required): name, description, version (non-empty strings), supportedInterfaces (list), capabilities (object), defaultInputModes, defaultOutputModes (lists of media types), skills (list). Top level (optional): provider, documentationUrl, iconUrl, securitySchemes, securityRequirements, signatures. The last three must be an object or a list.

supportedInterfaces[i]: url (required, URL rule), protocolBinding (required), protocolVersion (required), tenant (optional non-empty string).

capabilities: optional booleans streaming, pushNotifications, extendedAgentCard (null is accepted), optional extensions list.

skills[i]: id, name, description (required non-empty strings), tags (required list of non-empty strings), optional examples (list of non-empty strings), inputModes and outputModes (lists of media types), securityRequirements (object or list).

provider: organization (required non-empty string) and url (required, URL rule).

documentationUrl, iconUrl: URL rule.

Media type pattern

type/subtype, each part starting with a letter or digit and containing letters, digits and !#$&^_.+-, case-insensitive. Examples: text/plain, application/json.

Discovery URL

For a base URL with scheme http or https and a host, the card lives at <scheme>://<host>[:port]/.well-known/agent-card.json; any path, query or fragment of the base URL is dropped.

SKILL.md

tile.json