Skip to main content
Glama

complete_task

Marks a planned language-learning task as finished and awards XP; use it only after the learner completes a lesson or review, supplying lessonId or cardsReviewed as appropriate.

Instructions

Mark a planned task as done and award XP. Call only after the learner actually finished the task. Pass lessonId for lesson tasks and cardsReviewed for review tasks.

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": {
      "taskId": "<taskId>"
    },
    "name": "complete_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYes
lessonIdNo
cardsReviewedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses a side effect (XP award) and a precondition, but says nothing about idempotency, what happens if the task is completed twice, error behavior when neither lessonId nor cardsReviewed is supplied, or how much XP is granted. Adequate but with real gaps for a mutation 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?

Three short sentences, front-loaded with the action and effect, then the guard condition, then parameter routing. No filler and nothing repeated from structured fields.

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?

With no annotations and no output schema, the definition covers purpose, precondition, and parameter routing, which is enough to attempt a correct call. However, for a state-changing tool it leaves the agent guessing about repeat calls, failure modes, and what the response contains.

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 0%, so the description must compensate. It adds genuine meaning for two of three parameters by tying lessonId and cardsReviewed to specific task types, which the bare schema cannot convey. taskId is never explained, and no type/range guidance is given for the numeric cardsReviewed field.

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 concrete verb and resource ('Mark a planned task as done') plus the consequential effect ('award XP'), so the agent knows exactly what will happen. It is distinguishable from siblings like submit_review and save_lesson, though it never explicitly contrasts with them.

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 an explicit precondition ('Call only after the learner actually finished the task') which functions as a clear when-to-use gate. It also routes parameters by task type (lessonId for lesson tasks, cardsReviewed for review tasks). It stops short of naming an alternative tool for edge cases or stating what to do if the task type is ambiguous.

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