Skip to main content
Glama
bestpractices-mcp

bestpractices-mcp

by reponomics

Get badge SVG and README Markdown

get_project_badge_svg
Read-onlyIdempotent

Retrieve an SVG badge and Markdown embed snippet for a BadgeApp project and badge series from the OpenSSF Best Practices API, returning the SVG snapshot plus dynamic image and project page URLs.

Instructions

Retrieve an SVG badge and Markdown embed snippet for one selected BadgeApp project and one badge series, named by the family argument, from the OpenSSF Best Practices Badge API (https://www.bestpractices.dev). Returns the SVG text as a snapshot, its media type, dynamic image and project-page URLs, and source/fetch metadata. The dynamic URL lets README images reflect later badge changes. Does not render the SVG or write files; to save the badge as a file, write the returned svg text with your own file tools. Badge level, progress and update time are available through get_project_status; saved answers through get_project_answers.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "family": "<family>"
    },
    "name": "get_project_badge_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
familyYesBadge series whose SVG and README snippet to retrieve: "best_practices" is the metal series (passing, silver, gold); "baseline" is the Baseline series.
project_idYesBadgeApp project ID, as returned by find_project.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the bar is low, yet the description still adds real behavior: the SVG is returned as a snapshot, a dynamic image URL reflects later badge changes, and the tool never writes files. It also notes the response carries media type, project-page URL and source/fetch metadata, which the agent could not infer from annotations.

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?

The scoping constraint is front-loaded and the closing sentences about dynamic URLs and file writing each earn their place. The opening sentence is long and clause-heavy, which slows first-pass reading slightly, but nothing is redundant.

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 read-only two-parameter fetch tool with an output schema, this description covers the source API, return shape, URL semantics, and the file-writing caveat an agent most often gets wrong. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters are documented in the schema, including the family enum values. The description only references the family argument generically, adding no syntax or format detail beyond the schema, so it sits at the baseline for a fully documented two-parameter tool.

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?

The description opens with a specific verb and resource: 'Retrieve an SVG badge and Markdown embed snippet for one selected BadgeApp project and one badge series.' It scopes the call to exactly one project and one series and names the upstream API, so an agent can distinguish it from get_project_status or get_project_answers without opening a 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?

It states explicit exclusions ('Does not render the SVG or write files; to save the badge as a file, write the returned svg text with your own file tools') and routes the agent to alternatives for adjacent needs: get_project_status for badge level, progress and update time, and get_project_answers for saved answers. That is when-to-use, when-not-to-use, and alternatives all in one place.

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