Skip to main content
Glama

Record a usage event

record_decision
Idempotent

Record one usage event for a project you own (owner credential, or that project's pt_ token). Every event needs a source-stable event_id, project_id, catalog tool_id, event_type (picked|rejected|tried|starred|purchased|feedback|used|not_useful|not_relevant|refunded|cancelled), observed_at (ISO date), evidence_level (user_reported|observed|assistant_inferred — vendor_verified is not client-assertable), and consent_version 2026-11-11-v1. Needs the usage_collection consent scope. A retry with the same event_id returns duplicate:1 and writes nothing twice. refunded/cancelled must name the earlier event in reverses_event_id and never edit history. Purchases recorded here are self-reported and never enter any verified-payment ledger.

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": {
      "event_id": "<event_id>",
      "project_id": "<project_id>",
      "tool_id": "<tool_id>",
      "event_type": "<event_type>",
      "observed_at": "<observed_at>",
      "evidence_level": "<evidence_level>",
      "consent_version": "<consent_version>"
    },
    "name": "record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratingNo
tool_idYes
event_idYes
event_typeYes
project_idYes
observed_atYes
evidence_levelYes
consent_versionYes
reverses_event_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: retry semantics with duplicate:1 and no double-write (consistent with idempotentHint=true), the auth requirement, consent-scope gating, the rule that history is never edited, and that purchases are self-reported and never enter a verified ledger. It does not contradict destructiveHint=false or readOnlyHint=false. Missing is any description of error/failure behavior or response shape beyond duplicate:1.

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?

Dense but front-loaded: identity and scope come first, then required fields, then idempotency, then edge cases. Every clause carries a real constraint; the cost is a single long parenthetical block (event types, evidence levels) that is harder to scan than it could be.

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?

For a 9-parameter mutation with no output schema and zero schema coverage, the description supplies nearly everything an agent needs to compose a valid call, including the idempotency return signal. The remaining gaps are the undocumented `rating` parameter and the absence of any failure-mode guidance.

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?

With 0% schema coverage the description does the heavy lifting and covers eight of nine parameters in prose: source-stable event_id, project_id, catalog tool_id, event_type, observed_at as ISO date, evidence_level with the vendor_verified exclusion, consent_version value, and reverses_event_id usage. The optional `rating` parameter is never mentioned, leaving its meaning and when-to-supply it unexplained.

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?

States a specific verb and resource ('Record one usage event') scoped to 'a project you own', immediately separating it from read/list siblings such as project_get or check_updates. The scope and lifecycle ('writes nothing twice') make it unmistakable which tool handles usage-event writes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions: owner credential or that project's pt_ token, plus the usage_collection consent scope, and explains the refunded/cancelled case requiring reverses_event_id. It stops short of naming an explicit alternative tool for logging choices or feedback (e.g., log_choice, feedback), so the when-not-to-use routing is left implicit.

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