Skip to main content
Glama

fenbs_routines

Read-onlyIdempotent

Read Routine Processes: the checks, scripts and procedures this work depends on. Each has howToRun (the steps, in order), checks (what to verify afterwards) and ruleRefs (the decisions and rules that govern it, e.g. DEC-049). fenbs keeps how to run it, never the code. Routines due show in the AI context under Waiting on you. action list (project, kind, dueOnly, q), get (ref or id, with recent runs and their measures), get_run (runRef, e.g. RUN-001), list_runs (optional routine ref/id, project, itemRef, q, take, beforeId). References are permanent and board-local. Only reads.

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": {
      "action": "<action>"
    },
    "name": "fenbs_routines"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
idNo
refNoRTN reference; numeric id remains supported. If both are supplied they must agree.
kindNo
takeNolist_runs: 1-100, default 20.
actionYes
runRefNoget_run: RUN reference.
dueOnlyNo
itemRefNolist_runs: runs linked to this task.
projectNoadd/update: the one project it belongs to ("" for none). log_run: the project this run was for -- required on a template. list/list_runs: filter.
beforeIdNolist_runs: nextBeforeId from the preceding page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "get",
      -  "add",
      -  "update",
      -  "delete",
      -  "log_run",
      -  "get_run",
      -  "list_runs"
      -]New value: +[
      +  "list",
      +  "get",
      +  "get_run",
      +  "list_runs"
      +]
    • removedInput schema / properties / asksForProject
      Removed value: -{
      -  "description": "add/update: true makes it a template used on several projects, which asks for the project on each run; it then has no project of its own.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / checks
      Removed value: -{
      -  "description": "What to verify afterwards.",
      -  "type": "string"
      -}
    • removedInput schema / properties / everyDays
      Removed value: -{
      -  "description": "Days between runs, independent of group (1-366); 0 clears the schedule.",
      -  "type": "number"
      -}
    • removedInput schema / properties / groupId
      Removed value: -{
      -  "description": "add/update: group from fenbs_groups on this page. 0 removes it from a group; omitted preserves it on update.",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / howToRun
      Removed value: -{
      -  "description": "The steps, in order: a script path, a command, a skill name, or what to do by hand.",
      -  "type": "string"
      -}
    • removedInput schema / properties / measures
      Removed value: -{
      -  "description": "log_run: the numbers this run counted, at most 20, each name once. Reuse the names of the last run so the change is shown.",
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "name": {
      -        "description": "What was counted, up to 60 characters, e.g. \"Stuck buy notes\".",
      -        "type": "string"
      -      },
      -      "unit": {
      -        "description": "Optional, up to 12 characters, e.g. \"%\", \"ms\", \"notes\".",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  "maxItems": 20,
      -  "type": "array"
      -}
    • removedInput schema / properties / name
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / notes
      Removed value: -{
      -  "description": "log_run: what it found.",
      -  "type": "string"
      -}
    • removedInput schema / properties / purpose
      Removed value: -{
      -  "description": "What it checks or does, and why.",
      -  "type": "string"
      -}
    • removedInput schema / properties / result
      Removed value: -{
      -  "enum": [
      -    "ok",
      -    "issues",
      -    "failed"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / ruleRefs
      Removed value: -{
      -  "description": "Decision refs that govern it. Replaces the list.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / tasks
      Removed value: -{
      -  "description": "log_run: refs of tasks filed from it.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / properties / asksForProject
      Added value: +{
      +  "description": "add/update: true makes it a template used on several projects, which asks for the project on each run; it then has no project of its own.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / project / description
      Added value: +"add/update: the one project it belongs to (\"\" for none). log_run: the project this run was for -- required on a template. list/list_runs: filter."
  3. Changed1 schema field changed
    • addedInput schema / properties / measures
      Added value: +{
      +  "description": "log_run: the numbers this run counted, at most 20, each name once. Reuse the names of the last run so the change is shown.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "What was counted, up to 60 characters, e.g. \"Stuck buy notes\".",
      +        "type": "string"
      +      },
      +      "unit": {
      +        "description": "Optional, up to 12 characters, e.g. \"%\", \"ms\", \"notes\".",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  4. Changed8 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "get",
      -  "add",
      -  "update",
      -  "delete",
      -  "log_run"
      -]New value: +[
      +  "list",
      +  "get",
      +  "add",
      +  "update",
      +  "delete",
      +  "log_run",
      +  "get_run",
      +  "list_runs"
      +]
    • addedInput schema / properties / beforeId
      Added value: +{
      +  "description": "list_runs: nextBeforeId from the preceding page.",
      +  "type": "number"
      +}
    • changedInput schema / properties / everyDays / description
      Previous value: -"A routine: days between runs (1 daily, 7 weekly)."New value: +"Days between runs, independent of group (1-366); 0 clears the schedule."
    • addedInput schema / properties / groupId
      Added value: +{
      +  "description": "add/update: group from fenbs_groups on this page. 0 removes it from a group; omitted preserves it on update.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / itemRef
      Added value: +{
      +  "description": "list_runs: runs linked to this task.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "RTN reference; numeric id remains supported. If both are supplied they must agree.",
      +  "type": "string"
      +}
    • addedInput schema / properties / runRef
      Added value: +{
      +  "description": "get_run: RUN reference.",
      +  "type": "string"
      +}
    • addedInput schema / properties / take
      Added value: +{
      +  "description": "list_runs: 1-100, default 20.",
      +  "type": "number"
      +}
  5. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond them: that fenbs stores how-to-run knowledge but never the code, that references are permanent and board-local, and what get returns (recent runs and their measures).

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?

Information is front-loaded: purpose and return shape first, then the action/parameter map, then the read-only constraint. It is a single dense block and the parenthetical action list is somewhat run-on, but almost every clause carries information an agent needs.

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?

With 11 parameters, four action modes and no output schema, the definition covers what an agent needs to select the right action and pass matching parameters, plus a partial picture of returned fields. Pagination specifics (take, beforeId) are left to the schema, which documents them adequately, so no critical gap remains.

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 only 55%, and the description compensates by disambiguating which parameters apply to which action, including that get accepts ref or id and get_run needs a runRef like RUN-001. This is necessary because the schema's project description references add/update/log_run operations that are absent from the action enum, so the description is what pins down real per-action semantics for several params.

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 description opens with a specific verb+resource ("Read Routine Processes") and immediately states what a routine contains (howToRun, checks, ruleRefs). The closing "Only reads" separates it from the mutation sibling fenbs_change_routines without the agent needing to open either schema.

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 maps each action value to its relevant parameters (list with project/kind/dueOnly/q, get with ref or id, get_run with runRef, list_runs with its filters), which is concrete when-to-use guidance per mode. It also explains that due routines surface in the AI context under "Waiting on you", telling the agent when this tool is relevant. It stops short of explicitly naming the write-side alternative for editing routines.

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