Skip to main content
Glama

set_history_location

Records where the signed-in user was over a range of past days, so their history stops assuming. Use it when the user corrects a stretch — get_my_history marks inherited days with locationAssumed, and the history calendar offers those stretches for correction. Pass a cityId from search_city, or lat/lon. Changes only the location: whether they went outside that day is untouched. Requires OAuth (scope history:write).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesLast day of the stretch, YYYY-MM-DD; same as `from` for one day
latNoLatitude, for a place not in the database
lonNoLongitude, paired with lat
fromYesFirst day of the stretch, YYYY-MM-DD
cityIdNoCity id from search_city, e.g. 'builtin:londres'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the OAuth scope (history:write), states that it only changes location and not other details ('whether they went outside that day is untouched'), and clarifies it stops assumption. This is strong, though it could mention whether existing location data is overwritten or merged.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, front-loaded with the core purpose, then usage guidance, parameter hints, and scope/permissions. No wasted words.

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?

Given the tool's complexity (5 params, optional combinations, no output schema), the description covers purpose, when to use, parameter relationships, side effects, and auth. It is sufficient for an agent to invoke correctly.

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 baseline is 3. The description adds meaning by explaining the from/to range concept and the mutually exclusive cityId or lat/lon options, which is not fully captured in the schema. This adds value beyond the field 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 description clearly states the verb and resource: 'Records where the signed-in user was over a range of past days.' It also differentiates from siblings by explaining it corrects assumed history, which get_my_history marks with `locationAssumed`.

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?

Explicitly says 'Use it when the user corrects a stretch' and references get_my_history as the detection mechanism. It also gives alternatives for parameters (cityId from search_city or lat/lon), providing clear context for when to use this tool versus others.

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