Skip to main content
Glama

How a period went

get_history
Read-onlyIdempotent

A summary of the runs over the last few days, read from the phone: how many finished, stopped or are still going for each routine, which steps were most often skipped or put off, and each finished run with when it started and the step it ended on. Never notes or values. Use it to review a week, or to see which steps a routine could lose.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back. Seven if left out.
routineNoOnly this routine, by name or id.

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
runsNo
goingNo
finishedNo
routinesNo
mostPutOffNo
mostSkippedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "finished": {
      +      "type": "integer"
      +    },
      +    "from": {
      +      "type": "string"
      +    },
      +    "going": {
      +      "type": "integer"
      +    },
      +    "mostPutOff": {
      +      "items": {
      +        "properties": {
      +          "runs": {
      +            "type": "integer"
      +          },
      +          "step": {
      +            "description": "Routine › step.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "mostSkipped": {
      +      "items": {
      +        "properties": {
      +          "runs": {
      +            "type": "integer"
      +          },
      +          "step": {
      +            "description": "Routine › step.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "routines": {
      +      "items": {
      +        "properties": {
      +          "completed": {
      +            "type": "integer"
      +          },
      +          "going": {
      +            "type": "integer"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "otherwise": {
      +            "type": "integer"
      +          },
      +          "stopped": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "runs": {
      +      "items": {
      +        "properties": {
      +          "endedOn": {
      +            "description": "The step it ended on.",
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "lastMovedAt": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "putOff": {
      +            "type": "integer"
      +          },
      +          "routine": {
      +            "type": "string"
      +          },
      +          "skipped": {
      +            "type": "integer"
      +          },
      +          "startedAt": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "to": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuine value by disclosing the data source ('read from the phone') and the exclusion of notes and values, plus the aggregate nature of the result. It does not cover latency, sync requirements, or pagination of the per-run listing.

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?

Front-loaded with the core statement and dense with useful content per sentence. The single long sentence is somewhat comma-heavy and 'read from the phone' is an unexplained detail, but nothing is padding.

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 an output schema present, the description need not spell out return values, yet it usefully characterizes the shape of the summary. Parameters and safety are already structured. Only minor gaps remain, such as whether results require the phone to have synced recently.

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 coverage is 100%, with 'days' documented including the seven-day default and 'routine' documented as name or id. The description's 'last few days' and 'for each routine' merely echo those fields without adding format or edge-case meaning. Baseline 3 is appropriate when the schema carries parameter semantics.

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 resource (a summary of runs) and enumerates exactly what it aggregates: per-routine finished/stopped/in-progress counts, most-skipped or put-off steps, and finished runs with start time and final step. The clause 'Never notes or values' separates it from note/value-reading siblings, so an agent can tell it apart from list_runs or get_run without opening a 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?

Provides concrete usage contexts: 'Use it to review a week, or to see which steps a routine could lose.' It also implies a boundary with 'Never notes or values.' It does not explicitly name a sibling alternative (e.g. use list_runs for full detail), so it stops short of full when/when-not routing.

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.