Skip to main content
Glama

Set routines

set_routines
DestructiveIdempotent

Replace the list of routines: small steps that repeat on fixed weekdays. From today on, each one appears as a plan item on its days; tick it with edit_plan_item, skip it for one day with delete_plan_item. set_plan keeps them. days are ISO weekdays 1=Mon..7=Sun, default every day. perWeek makes it a weekly count: each tick adds its count (default 1), and once the week reaches perWeek it leaves the plan until Monday. Link it to the goal with leverId. minimum is the small version for a bad day ("read one thread" for "talk to one person"). Pass existing ids to keep them.

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": {
      "routines": "<routines>"
    },
    "name": "set_routines"
  }
}

Input Schema

NameRequiredDescriptionDefault
routinesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / routines / items / properties / leverId / description
      Added value: +"lever id from get_goal"
  2. Changed2 schema fields changed
    • addedInput schema / properties / routines / items / properties / minimum
      Added value: +{
      +  "description": "the bad-day version, e.g. \"read one thread\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / routines / items / properties / perWeek
      Added value: +{
      +  "description": "weekly count, e.g. 5 for \"talk to 5 people a week\"",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description corroborates them with the word 'Replace' plus the critical detail that ids passed in are preserved, which tells the agent what survives a replacement. It further discloses downstream behavior: items materialize as plan items starting today, perWeek accumulates ticks and drops out of the plan until Monday, and minimum supplies a bad-day fallback. Missing only return shape and failure modes.

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?

The core replacement semantics are front-loaded, and nearly every clause carries operational information with no filler. The prose is telegraphic, though, stacking many short clauses ('Link it to the goal with leverId. minimum is the small version...') that read as a run-on rather than organized groups.

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

Completeness4/5

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

For a destructive bulk-replace of a nested object list with no output schema, the definition covers the semantics an agent needs: replacement, id preservation, day scheduling, weekly-count behavior, and goal linkage. It could be stronger by stating outright that routines omitted from the array are removed and by saying what is returned.

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 low, and the description compensates for the ambiguous fields: days is ISO weekday 1-7 defaulting to every day, perWeek converts the routine to a weekly count with the tick-adds-count mechanic, leverId links to the goal, and minimum is the reduced version. It leaves area, projectId, estimateMin, and title to the schema, and the missing ones are largely self-explanatory from enums or schema descriptions.

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?

The definition opens with a specific verb and resource, 'Replace the list of routines,' and immediately defines what a routine is ('small steps that repeat on fixed weekdays'). The replacement semantics and the downstream effect ('from today on, each one appears as a plan item on its days') distinguish it from get_routines and from unrelated set_* siblings without requiring the schema to be opened.

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 clear operational context: tick an instance with edit_plan_item, skip one day with delete_plan_item, and notes that set_plan keeps routines. It also tells the caller how to preserve existing entries ('Pass existing ids to keep them'). What it lacks is an explicit when-not statement, e.g. when to read routines instead or when a weekly count is preferable to fixed days.

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.