Skip to main content
Glama

Report AI usage

report-ai-usage-tool
Idempotent

Report that you — the coding agent — wrote or helped write this change, and how much of it. Coderbuds otherwise has to infer AI authorship from the shape of the diff, and a heuristic that decides who counts as an AI adopter is a heuristic that decides where a CTO spends budget. You already know the answer. Say it, and the team's AI numbers stop being a guess.

Call this once per change, after the work is done — ideally with pull_request_number once the PR exists, or branch before it does. When you pushed straight to the default branch and there is no pull request, pass commit_shas instead: the full SHAs the push landed. Re-reporting the same change refreshes the record rather than double-counting it, so it is safe to call again as the work evolves.

Set authorship honestly: agent_authored (you wrote essentially all of it), agent_assisted (you wrote a meaningful part, a person wrote the rest), or human_authored (a person wrote it and you only looked things up or reviewed).

Then say what you saw a person do before the pull request opened (or the push landed), in review_evidence. Do not judge whether the change was "reviewed" — list only what happened in front of you:

  • approved_each_edit — each edit was shown to a person as a diff and approved before it applied (you ran in a mode that asks before editing, not one that bypasses permissions)

  • diff_comments — a person left comments on the diff before it opened (in Conductor, the GetDiffComments tool returns them)

  • edited_by_person — a person changed the code themselves

  • replied_after_changes — a person replied after the change was finished and before the pull request opened, so they saw at least your summary of it

Pass an empty list when none of these happened. You cannot see a person reading a diff in their editor, so an empty list means "no evidence", and Coderbuds words it that way.

Reports are team-visible and attributed to you. The response tells you whether Coderbuds' own detector agreed with your report; where it did not, yours is the one that counts.

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": {
      "repository": "<repository>",
      "tool": "<tool>",
      "authorship": "<authorship>"
    },
    "name": "report-ai-usage-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYesThe coding agent that did the work, as a stable slug — e.g. claude-code, cursor, copilot, codex, amp. Name the product the person worked through, not the model under it: an agent running inside Amp reports amp even when the model is Claude, and puts the model in `model`. Free text is normalised, so "Claude Code" and "claude-code" are the same tool.
modelNoOptional model that did the work, e.g. claude-opus-5. Separate from `tool`: Amp, Cursor and others run several models.
notesNoOptional short context, e.g. "agent wrote the migration, human rewrote the query". Max 500 characters.
branchNoThe source branch, for when you report before the pull request exists. Matched to the pull request when it appears.
authorshipYesHow much of the change you wrote: agent_authored (essentially all), agent_assisted (a meaningful part), or human_authored (a person wrote it, you only assisted).
repositoryYesThe repository the change is in, as owner/name or a bare repo name. Also binds the session to the owning team.
commit_shasNoFor a change pushed straight to the default branch with no pull request: the full 40-character SHAs the push landed, newest first — `git log --format=%H <old>..<new>` over the range `git push` printed. Each push is its own report.
human_reviewedNoDeprecated — send review_evidence instead, which this is derived from. Used only when review_evidence is absent.
review_evidenceNoWhat you saw a person do before the pull request opened: approved_each_edit, diff_comments, edited_by_person, replied_after_changes. An empty list when none of these happened.
pull_request_numberNoThe pull request this change became, if it exists yet. The strongest anchor — it lets Coderbuds compare your report against what its detector inferred from the same diff.

Output Schema

NameRequiredDescriptionDefault
teamYesTeam name.
toolYesNormalised tool slug recorded.
modelNoModel recorded, if given.
branchNoBranch the report is anchored to, if given.
createdYesFalse when this refreshed an existing report for the same change.
messageYesHuman-readable confirmation.
next_stepNoSomething to do now, when there is one — for example asking the team for the review this pull request needs. Null when there is nothing to do.
authorshipYesAuthorship level recorded.
repositoryYesRepository the report was recorded against.
commit_shasNoPushed commits the report is anchored to, newest first, if given.
review_levelYesWhat the evidence adds up to: inspected, saw_change, unseen, or unknown.
human_reviewedYesWhether the evidence shows a person looked at the code before it opened.
inferred_scoreNoWhat Coderbuds' own detector scored this pull request, or null when there is nothing to compare yet.
detector_agreedNoWhether the inferred score agreed with your report. Null when there is nothing to compare.
review_evidenceNoThe evidence recorded, or null when none was sent.
pull_request_numberNoPull request number the report is anchored to, if given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedOutput schema / properties / branch / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / commit_shas / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • changedOutput schema / properties / detector_agreed / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / inferred_score / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / model / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / next_step / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / pull_request_number / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / review_evidence / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / commit_shas
      Added value: +{
      +  "description": "For a change pushed straight to the default branch with no pull request: the full 40-character SHAs the push landed, newest first — `git log --format=%H <old>..<new>` over the range `git push` printed. Each push is its own report.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / commit_shas
      Added value: +{
      +  "description": "Pushed commits the report is anchored to, newest first, if given.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / next_step
      Added value: +{
      +  "description": "Something to do now, when there is one — for example asking the team for the review this pull request needs. Null when there is nothing to do.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Optional model that did the work, e.g. claude-opus-5."New value: +"Optional model that did the work, e.g. claude-opus-5. Separate from `tool`: Amp, Cursor and others run several models."
    • changedInput schema / properties / tool / description
      Previous value: -"The coding agent that did the work, as a stable slug — e.g. claude-code, cursor, copilot, codex. Free text is normalised, so \"Claude Code\" and \"claude-code\" are the same tool."New value: +"The coding agent that did the work, as a stable slug — e.g. claude-code, cursor, copilot, codex, amp. Name the product the person worked through, not the model under it: an agent running inside Amp reports amp even when the model is Claude, and puts the model in `model`. Free text is normalised, so \"Claude Code\" and \"claude-code\" are the same tool."
  5. Changed6 schema fields changed
    • changedInput schema / properties / human_reviewed / description
      Previous value: -"Whether a person actually read the diff before it went up. Defaults to false — report it honestly rather than flatteringly."New value: +"Deprecated — send review_evidence instead, which this is derived from. Used only when review_evidence is absent."
    • addedInput schema / properties / review_evidence
      Added value: +{
      +  "description": "What you saw a person do before the pull request opened: approved_each_edit, diff_comments, edited_by_person, replied_after_changes. An empty list when none of these happened.",
      +  "items": {
      +    "enum": [
      +      "approved_each_edit",
      +      "diff_comments",
      +      "edited_by_person",
      +      "replied_after_changes"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / human_reviewed / description
      Previous value: -"Whether a person read the diff."New value: +"Whether the evidence shows a person looked at the code before it opened."
    • addedOutput schema / properties / review_evidence
      Added value: +{
      +  "description": "The evidence recorded, or null when none was sent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / review_level
      Added value: +{
      +  "description": "What the evidence adds up to: inspected, saw_change, unseen, or unknown.",
      +  "enum": [
      +    "inspected",
      +    "saw_change",
      +    "unseen",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "team",
      -  "repository",
      -  "tool",
      -  "authorship",
      -  "human_reviewed",
      -  "created",
      -  "message"
      -]New value: +[
      +  "team",
      +  "repository",
      +  "tool",
      +  "authorship",
      +  "human_reviewed",
      +  "review_level",
      +  "created",
      +  "message"
      +]
  6. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the safety profile is covered; the description adds real context beyond that by disclosing that re-reporting refreshes rather than double-counts, that reports are team-visible and attributed to the caller, and that the response surfaces whether Coderbuds' detector agreed. Those are genuine behavioral facts an agent could not derive from the annotation pair, though nothing is said about failure modes or what happens when the anchor cannot be matched.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instruction is front-loaded and the bulleted `review_evidence` list is scannable, but roughly a third of the text is motivational rhetoric ('a heuristic that decides who counts as an AI adopter is a heuristic that decides where a CTO spends budget') that informs no invocation decision. For a 10-parameter tool with a fully documented schema, the definition is longer than the decision space requires.

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?

An output schema exists and the description still notes what the response reveals (detector agreement), so return values are covered. Combined with the anchor-selection rules, authorship definitions, idempotency note, and attribution disclosure, an agent has everything needed to call this correctly on the first attempt.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already carries every parameter, and much of the description's parameter guidance (the three `authorship` values, the `review_evidence` enum meanings) restates the schema descriptions nearly verbatim. The added value is narrower: the 'do not judge whether the change was reviewed' instruction and the redirect from `human_reviewed` to `review_evidence`, which is worth some credit but not enough to lift this far above the coverage baseline.

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 opening sentence states a specific verb and resource: report that the coding agent wrote or helped write a change, and how much. It also contrasts with the implicit alternative (Coderbuds inferring authorship from the diff), which makes it immediately distinguishable from the read-only siblings such as get-ai-adoption-tool.

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 gives explicit timing ('once per change, after the work is done') and a decision rule for choosing the anchor parameter: use `pull_request_number` when the PR exists, `branch` before it does, and `commit_shas` when a push went straight to the default branch. It also names the empty-list case for `review_evidence` and the deprecated fallback, so no branch of usage is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources