Skip to main content
Glama

Report goal measurement

report_goal_measurement

Record a measured value for a goal's success metric and re-evaluate the goal against its target.

Stores the value as success_metric.current, recomputes the goal's
progress from it, and returns the evaluation: progress_score,
confidence_score, success_met and calculation detail. It does not close
the goal; use close_goal when success_met is true and you want to
conclude it.

The goal needs a success_metric with a 'target' and usually an
'operator' (default '=='), set with update_goal, e.g.
{"metric": "test_coverage", "target": 0.9, "operator": ">="}. Without a
target the call fails with 422. Goals evaluated by a structured
success_condition also reject measurements with 422.

Args:
    goal_id: UUID of the goal.
    value: The measured value. Zero is a valid measurement.
    baseline: Starting point used to compute progress, mainly for
        reduction goals. Overwrites any stored baseline. If omitted and
        none is stored, the previous measurement (or this one, if there
        is none) becomes the baseline.

Input Schema

NameRequiredDescriptionDefault
valueYes
goal_idYes
baselineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false) by disclosing the storage side effect (value becomes success_metric.current), the recomputation behavior, the returned evaluation fields, baseline overwrite semantics, and two distinct 422 failure modes. This is exactly the extra behavioral context annotations cannot carry.

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?

Front-loaded with the core action, then effects, then sibling routing, then args. The embedded example JSON and the baseline fallback sentence are slightly heavy, but each earns its place by removing a real ambiguity; nothing is padding.

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?

With no output schema, no annotation detail beyond hints, and 0% schema coverage, the description nonetheless covers the return payload, the failure modes, and the preconditions. An agent has everything it needs to call this correctly and interpret the result.

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

Parameters5/5

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

Schema coverage is 0% and the schema carries only bare types, so the description must compensate — and it does: goal_id is a UUID, value may legitimately be zero, and baseline's overwrite behavior plus its fallback chain (omitted and none stored → previous measurement → this one) is spelled out. No ambiguity remains for any of the three parameters.

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 precise verb+resource pair — record a measured value for a goal's success metric and re-evaluate the goal — and immediately distinguishes itself from the similarly named update_goal and close_goal. An agent can route between these three siblings without opening any 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?

Explicit when-not guidance: 'It does not close the goal; use close_goal when success_met is true and you want to conclude it.' It also gives the prerequisites (a success_metric with target/operator, configured via update_goal) and the exact conditions that make the call fail.

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