Skip to main content
Glama

get_contribution_playbook

Read-onlyIdempotent

Fetch a repository's contribution guidelines to learn its rules, required templates, commit conventions, testing setup, and security reporting before submitting changes.

Instructions

START HERE before contributing to a repo (Layer 0). Returns the repo's contribution rules, read from the local clone at the default branch: CONTRIBUTING, code of conduct, SECURITY policy (security bugs are always reported privately, never as public issues/PRs), PR and issue templates (with required fields), governance/CODEOWNERS, CLA, DCO sign-off, commit message convention, changelog/news-fragment rules, dev setup and test commands, pre-commit hooks, CI workflows, whether an issue must come before a PR, the AI policy, and (with a GitHub token) maintainer activity stats. Each item names its source file and quotes it. Cached per default-branch commit; refresh=True rebuilds. Follow it; then call get_contribution_steps.

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": {
      "repo": "<repo>"
    },
    "name": "get_contribution_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes
refreshNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds behavior those annotations cannot convey: results are cached per default-branch commit, refresh=True rebuilds the cache, some content (maintainer activity stats) depends on having a GitHub token, and security bugs are always private rather than public issues. It also states the output shape convention ("Each item names its source file and quotes it").

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 most important instruction ("START HERE") is front-loaded and the enumeration of returned artifacts is scannable. The single dense paragraph is long, but nearly every clause names a distinct artifact the agent would otherwise have to discover by trial.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description bears the burden of explaining returns, and the enumerated artifact list does that well, including the caveat that token-dependent stats may be absent. The only material omission is the expected format of the required `repo` argument, which matters for a tool that reads a local clone.

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 0%, so the description must carry parameter meaning, and it does for refresh ("refresh=True rebuilds" the per-commit cache). It also implies the ambient token dependency that changes results. The gap is that it never clarifies what `repo` should be — a local path, a name, or an owner/name slug — despite describing reads "from the local clone".

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 uses a specific verb ("Returns") and resource ("the repo's contribution rules") and then enumerates the concrete artifacts returned: CONTRIBUTING, code of conduct, SECURITY, PR/issue templates, CODEOWNERS, CLA/DCO, commit conventions, CI, AI policy. It also explicitly distinguishes itself from the sibling it hands off to ("then call get_contribution_steps"), so an agent can tell the two apart 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?

"START HERE before contributing to a repo (Layer 0)" states the trigger condition plainly, and "Follow it; then call get_contribution_steps" states the ordering relative to the alternative. It even flags a refresh condition ("Cached per default-branch commit; refresh=True rebuilds"), which tells the agent when to re-invoke versus reuse.

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