Skip to main content
Glama

set goal

set_goal
DestructiveIdempotent

Save the user's career goal, the target on their plan page: the role they're aiming for, the month (YYYY-MM), the hours a week they can give it, and the yearly base pay they're aiming for if they said one. Give the whole goal: to change one part, read career_plan first and keep the rest as it is, pay included. Use it when the user states or changes their goal. Only what the user said: never fill the role, month, hours or pay yourself. It asks the user first and replaces the goal they had; their route of steps follows from it. Once it's saved, undo can put it back within 24 hours.

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": {
      "role": "<role>",
      "by": "<by>",
      "hoursPerWeek": "<hoursPerWeek>"
    },
    "name": "set_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesThe month they're aiming for, YYYY-MM, from next month on
nowNoTheir role now, if they said it or the plan has it
payNoThe yearly base pay in US dollars they said they're aiming for, only a number they said. Leave empty when they skipped it or didn't say; never take it from a posted range
roleYesThe role they're aiming for, in their words (Head of Product)
hoursPerWeekYesThe hours a week they said they can give it, 1 to 20

Output Schema

NameRequiredDescriptionDefault
textYesThe answer, or what was done, in plain words for the user: the same text as content
undoNoOn a saved write: its undo handle, for undo within 24 hours
widgetNoThe card the host draws with it, e.g. "pipeline"; "confirm" means a write waits for the user's Yes and nothing is saved yet

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-read-only), it discloses that the tool confirms with the user first, replaces the existing goal, cascades into the step route, and that the change can be reversed via undo within 24 hours. It also adds a strong anti-hallucination guard: never fill in role, month, hours, or pay on the user's behalf.

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?

Purpose and field list are front-loaded, then the whole-goal rule, trigger, fabrication guard, and undo window follow in a logical order. It is dense but nearly every sentence carries a distinct constraint; only the field enumeration slightly overlaps the schema.

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?

This is a destructive mutation with an output schema, and the description covers confirmation behavior, replacement semantics, downstream effects, and the undo window, so an agent knows both what to send and what will happen. Return-value detail is unnecessary because an output schema exists.

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 already 100%, so the baseline is 3, but the description adds operative meaning: pay is only included when the user stated a number and must not be lifted from a posted range, and the month format is restated as YYYY-MM. The remaining fields (role wording, hours range) are largely covered by the schema already.

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 ('Save the user's career goal') and then enumerates exactly what the goal consists of: role, month (YYYY-MM), hours/week, and optional yearly base pay. It situates the object ('the target on their plan page') so an agent can distinguish it from other write tools in the catalog.

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?

Gives an explicit trigger ('Use it when the user states or changes their goal') and an explicit read-before-write alternative for partial edits ('to change one part, read career_plan first and keep the rest as it is'). The condition that selects the alternative path is spelled out rather than inferred.

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