Skip to main content
Glama

Routine Run: write a routine

Make a link that opens a routine in the app

routine_link
Read-onlyIdempotent

Checks a routine written in the form how_to_write_a_routine describes and returns a link. Opened on an iPhone with Routine Run, it shows the routine on the app's review screen, where the person saves it or not. Nothing is kept here. Give the person the link and the JSON too, in case the link is opened somewhere else.

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": {
      "routine": "<routine>"
    },
    "name": "routine_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
routineYesThe routine: one JSON object in the form, with "routineRun": 2, a name and its steps. JSON text is read too.

Output Schema

NameRequiredDescriptionDefault
jsonYesThe routine, for the person to copy when there is no link or it is opened somewhere else.
linkYesOpens the routine on the app's review screen; null when the routine is too long for a link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / routine / properties
      Added value: +{
      +  "name": {
      +    "description": "What the routine is called.",
      +    "type": "string"
      +  },
      +  "routineRun": {
      +    "description": "The form it is written in: 2.",
      +    "type": "integer"
      +  },
      +  "steps": {
      +    "description": "The steps, in order.",
      +    "items": {
      +      "properties": {
      +        "title": {
      +          "description": "What to do, as an instruction.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "title"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedInput schema / properties / routine / required
      Added value: +[
      +  "routineRun",
      +  "name",
      +  "steps"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "json": {
      +      "description": "The routine, for the person to copy when there is no link or it is opened somewhere else.",
      +      "type": "string"
      +    },
      +    "link": {
      +      "description": "Opens the routine on the app's review screen; null when the routine is too long for a link.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "link",
      +    "json"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / routine / description
      Previous value: -"The routine: one JSON object in the form, with \"routineRun\": 1, a name and its steps. JSON text is read too."New value: +"The routine: one JSON object in the form, with \"routineRun\": 2, a name and its steps. JSON text is read too."
  3. Changed2 schema fields changed
    • changedInput schema / properties / routine / description
      Previous value: -"The routine: one JSON object in the form, with \"routineRun\": 1, a name and its steps."New value: +"The routine: one JSON object in the form, with \"routineRun\": 1, a name and its steps. JSON text is read too."
    • addedInput schema / properties / routine / type
      Added value: +[
      +  "object",
      +  "string"
      +]
  4. First observed

TDQS

A4/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 bar is low. The description still adds real value beyond them: the link opens the review screen on a specific device/app, the person may or may not save, and "Nothing is kept here" explicitly confirms no server-side persistence.

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?

Three short sentences, front-loaded with the check-and-return-link action, then the device behavior, then the delivery instruction. The final sentence is slightly rambling ("the JSON too, in case...") but still earns its place as actionable guidance.

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?

An output schema exists, so return-value explanation is not needed, and with one fully documented parameter the definition covers the remaining burden: what validation happens, what the link does, and that nothing persists. Only the lack of comparison against sibling tools keeps it from a 5.

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 the cross-reference that the object must follow the form documented by how_to_write_a_routine, which is meaning the schema alone doesn't convey. It does not restate the nested name/steps/routineRun fields, which is appropriate.

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 specific verb+resource: it checks a routine and returns a link, plus what the link does on an iPhone. It implicitly distinguishes itself from how_to_write_a_routine by pointing at that tool as the format spec, though it never contrasts itself with link-adjacent siblings like publish_routine.

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?

"Give the person the link and the JSON too, in case the link is opened somewhere else" is a concrete post-call instruction that tells the agent how to use the result. It lacks any explicit when-not guidance or named alternative tool for the cases this one doesn't cover.

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.