Catalog PyPI
PACKAGE EXPLORERView in registry

agentcard-disco

PyPI

Score and optimize A2A Agent Cards for discoverability

a2aagentagent-carddiscoverabilityllm
Versions collected1
Direct dependencies6From release 0.2.2
Last observed20 Oct, 21:36 UTC

README

Version 0.2.2 documentation

agentcard-disco

Score and optimise A2A Agent Cards for discoverability.

agentcard-disco analyses an Agent Card JSON file and gives it a discoverability score across four heuristic dimensions (plus optional AI-assisted analysis), surfacing exactly what to fix before publishing to an A2A registry.

┌─────────────────────────────────────────────────────────────┐
│  agentcard-disco          discoverability score             │
│                                                             │
│  🏆  DataPulse Analytics Agent                              │
│    Source: tests/fixtures/good_card.json                    │
│                                                             │
│    Score: 88.0 / 100   (88%)   Grade:  A                   │
└─────────────────────────────────────────────────────────────┘

Installation

pip install agentcard-disco

For AI-assisted scoring (--deep):

pip install "agentcard-disco[deep]"

Quick start

# Score a local card
agentcard-disco score ./agent-card.json
agentcard-disco score ./tests/fixtures/good_card.json --deep

# Score from a URL
agentcard-disco score https://api.example.com/.well-known/agent-card.json

# + AI quality analysis (requires GROQ_API_KEY in .env)
agentcard-disco score ./agent-card.json --deep

# Export report as JSON or Markdown
agentcard-disco score ./agent-card.json --format json --output report.json
agentcard-disco score ./agent-card.json --format markdown --output report.md

# CI gate — exit 1 if score is below 70%
agentcard-disco score ./agent-card.json --fail-under 70

# Get improvement suggestions only
agentcard-disco suggest ./agent-card.json --priority high

# Compare two cards side-by-side
agentcard-disco compare ./v1.json ./v2.json

Scoring dimensions

DimensionPointsWhat it measures
Metadata Richness0–30Description length, tags, examples, provider info
Semantic Specificity0–30Filler-word ratio, skill distinctness, action-verb density
Search Alignment0–20Tag and keyword coverage vs A2A registry query vocabulary
Completeness0–20SemVer, capabilities, auth declaration, protocol version
AI Quality (--deep)0–20Categorical quality judgments via Groq

Grade scale:

GradeScore
A85–100%
B70–84%
C50–69%
D30–49%
F0–29%

AI scoring setup (--deep)

  1. Install the deep extra: pip install "agentcard-disco[deep]"
  2. Add your Groq API key to a .env file in your working directory:
GROQ_API_KEY="gsk_your_key_here"
  1. Run with --deep:
agentcard-disco score ./agent-card.json --deep

Python API

from agentcard_disco.parser import load
from agentcard_disco.scoring.engine import score

card = load("agent-card.json")        # also accepts http(s):// URLs
report = score(card)                  # Tier 1 only
report = score(card, deep=True)       # + AI analysis

print(report.grade.value)            # "A", "B", ...
print(report.percentage)             # 88.0
print(report.total_score)            # 88.0

for suggestion in report.all_suggestions:
    print(suggestion.priority, suggestion.field, suggestion.message)

Commands

score

agentcard-disco score SOURCE [OPTIONS]
OptionDefaultDescription
--deepoffEnable Tier 2 AI analysis (+20 pts)
--formatterminalterminal, json, or markdown
--output FILEstdoutWrite output to file
--fail-under SCORE—Exit 1 if percentage < SCORE
--no-suggestionsoffHide suggestions table
--no-detailoffHide per-dimension details

suggest

agentcard-disco suggest SOURCE [OPTIONS]
OptionDefaultDescription
--priorityallFilter: all, high, medium, low
--formatterminalterminal or json
--limit N20Max suggestions to show
--deepoffInclude AI suggestions

compare

agentcard-disco compare SOURCE SOURCE [SOURCE ...] [OPTIONS]
OptionDefaultDescription
--formatterminalterminal or json

Development

git clone https://github.com/chinemeze/agentcard-disco
cd agentcard-disco
pip install -e ".[deep]"
pip install pytest pytest-cov mypy ruff

# Run tests
pytest tests/ -v

# Lint
ruff check src/

# Type check
mypy src/

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.27 Jun 20266

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
chinemeze/agentcard-disco

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f36da37dbaa1d350848944fb9afac400b840deef3e1ed323705d40298c997ba6