Skip to main content
Glama

Update KPI

update_kpi
Destructive

Change fields on an existing KPI, or record a new measurement by passing currentValue. Partial update: only the fields you pass are changed, everything else stays as it is. Requires the KPI ID (find it with list_kpis). Writes immediately. Fails with "KPI not found" when the ID is not in this workspace. Returns the updated KPI.

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": {
      "kpiId": "<kpiId>"
    },
    "name": "update_kpi"
  }
}

Input Schema

NameRequiredDescriptionDefault
kpiIdYesThe KPI ID (required)
titleNoNew title
statusNoNew lifecycle: DRAFT, ACTIVE or CANCELLED. COMPLETED marks the KPI completed
teamIdNoNew team ID (null to clear)
dueDateNoNew due date (null to clear)
ownerIdNoNew owner user ID
startDateNoNew start date in ISO 8601 (null to clear)
descriptionNoNew description (empty to clear)
targetValueNoUpdated target value
currentValueNoUpdated current value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false; the description adds real value beyond them by explaining partial-update semantics ('only the fields you pass are changed'), that writes are immediate, the exact failure mode ('KPI not found' when the ID is outside the workspace), and the return value. It does not spell out which changes are hard to undo (e.g., status transitions), which is the remaining gap for a destructive tool.

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

Conciseness5/5

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

Five short sentences, front-loaded with the two usage modes, then the partial-update contract, prerequisite, side effect, failure mode, and return. Nothing is redundant.

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?

No output schema exists, yet the description states what is returned ('the updated KPI'), and it covers the prerequisite, the write behavior, and the error case. An agent has everything needed to invoke it correctly.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: currentValue is framed as recording a new measurement rather than just an updated number, and kpiId is tied to list_kpis as its source.

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 ('Change fields on an existing KPI') plus a second mode ('record a new measurement by passing currentValue'), which separates it from create_kpi and get_kpi without ambiguity.

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 context for use: existing KPIs only, and points to list_kpis to obtain the required ID. It does not explicitly say when to prefer create_kpi or get_kpi instead, so it stops short of full alternative routing.

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