Skip to main content
Glama

update_metric_for_week

Post or update a metric score for a specified week using a measurable ID and week ID. Retrieve week IDs with get_score_history before setting the numeric value.

Instructions

Post or update a metric score for a specific week. Provide the measurable ID and week ID. Use get_score_history to find week IDs.

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": {
      "measurable_id": "<measurable_id>",
      "week_id": "<week_id>",
      "value": "<value>"
    },
    "name": "update_metric_for_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional note
valueYesThe numeric value to set
week_idYesThe week ID
measurable_idYesThe measurable ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. 'Post or update' usefully discloses upsert semantics (create-or-overwrite), which is meaningful for a write tool, but it does not say whether an existing score is replaced, what permissions are needed, or what the call returns. That leaves substantial behavioral questions unanswered for a mutating tool.

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?

Three short sentences with the action front-loaded and the prerequisite pointer last — no filler. The middle sentence mostly repeats schema-required fields, which is mildly redundant but still aids scanning.

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

Completeness3/5

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

There is no output schema and no annotations, so the description is the only source of behavioral context, and it omits return values, error cases, and the overwrite/replace semantics. It covers the call mechanics but not the consequences, which is a real gap for a write operation.

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 description coverage is 100%, so all four parameters are already documented with types and descriptions. The description restates the two required ID parameters and adds a hint that week IDs come from get_score_history, but says nothing about the optional note parameter or value formatting. Baseline 3 applies when the schema does the heavy lifting.

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?

The description uses a specific verb pair and resource: 'Post or update a metric score for a specific week.' That is clear enough to distinguish it from read-oriented siblings like get_score_history or get_measurable, though it does not explicitly contrast with update_score, which likely operates on a different granularity.

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?

It gives concrete operational guidance — 'Provide the measurable ID and week ID. Use get_score_history to find week IDs' — telling the agent the prerequisite step for obtaining a required identifier. It stops short of stating when to prefer this over update_score, so there is no explicit exclusion rule.

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