Skip to main content
Glama

Apply implementation meter change

apply_implementation_meter_change
DestructiveIdempotent

Record the result of a requested meter change against the expected project version and graph digest, including the before and after source fingerprints.

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": {
      "projectId": "<projectId>",
      "sessionId": "<sessionId>",
      "requestId": "<requestId>",
      "expectedVersion": "<expectedVersion>",
      "baseSourceFingerprint": "<baseSourceFingerprint>",
      "resultingSourceFingerprint": "<resultingSourceFingerprint>",
      "expectedProjectVersion": "<expectedProjectVersion>",
      "graphDigest": "<graphDigest>",
      "resultingMeterKey": "<resultingMeterKey>",
      "resultSummary": "<resultSummary>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "apply_implementation_meter_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
requestIdYesExisting request record ID returned by the corresponding request creation or pending-request listing.
sessionIdYesID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
graphDigestYesDigest identifying the graph snapshot for this operation.
resultSummaryYesBrief account of the implemented meter change.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.
resultingMeterKeyYesKey of the implementation meter after the requested change.
baseSourceFingerprintYesFingerprint of the meter source before the change.
expectedProjectVersionYesCurrent hosted project version from the latest project status read; guards against overwriting a newer graph publication.
resultingSourceFingerprintYesFingerprint of the meter source after the change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / expectedProjectVersion / description
      Previous value: -"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."New value: +"Current hosted project version from the latest project status read; guards against overwriting a newer graph publication."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed7 schema fields changed
    • addedInput schema / properties / baseSourceFingerprint / description
      Added value: +"Fingerprint of the meter source before the change."
    • addedInput schema / properties / graphDigest / description
      Added value: +"Digest identifying the graph snapshot for this operation."
    • changedInput schema / properties / requestId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Existing request record ID returned by the corresponding request creation or pending-request listing."
    • addedInput schema / properties / resultSummary / description
      Added value: +"Brief account of the implemented meter change."
    • addedInput schema / properties / resultingMeterKey / description
      Added value: +"Key of the implementation meter after the requested change."
    • addedInput schema / properties / resultingSourceFingerprint / description
      Added value: +"Fingerprint of the meter source after the change."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed6 schema fields changed
    • addedInput schema / properties / expectedProjectVersion / description
      Added value: +"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / requestId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, so the mutation/safety profile is covered. The description adds genuine value by exposing the optimistic-concurrency contract ('against the expected project version and graph digest'), but it never says what a stale version does at runtime or what state the destructive write replaces.

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?

One front-loaded sentence with no filler, leading with the action and then the guard and evidence details. It is efficient, though it compresses a complex multi-parameter mutation into a single clause, so structure is minimal rather than exemplary.

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

Completeness2/5

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

For an 11-required-parameter destructive mutation with no output schema, a single sentence is thin. It omits the precondition that a matching request must exist, the failure mode on version or digest mismatch, and what the caller receives on success, leaving the agent to infer the workflow from sibling tools.

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 description coverage is 100%, so the baseline would be 3, but the sentence groups the parameters meaningfully — expected project version and graph digest as guard inputs, base/resulting fingerprints as a before/after pair. That pairing clarifies intent beyond the individual per-property descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — recording the result of a requested meter change — plus the guards it validates against (project version, graph digest) and the fingerprints captured. An agent can distinguish it from get_pending_implementation_meter_changes and queue_implementation_meter_request by the 'record the result' framing, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: this is the completion step for a change that was previously requested, and the phrase 'requested meter change' hints at that workflow. There is no explicit when-to-use, no precondition stating a queued request must exist, and no pointer to the pending-changes sibling for discovering what to apply.

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