Skip to main content
Glama

get_trajectory

get_trajectory
Read-onlyIdempotent

Retrieve historical location trajectories for a specific tag within a given time range. Returns trajectory points with total count and pagination hints.

Instructions

【📊 查询】查询标签的历史位置轨迹(基于 location_data 表)。

参数:

  • tagCode: 标签编码(必填)

  • startTime: 开始时间(可选),格式 "2026-07-09 08:00:00"

  • endTime: 结束时间(可选)

  • limit: 最多返回点数,默认 500,最大 5000

返回: totalCount(匹配总数) + pointCount(实际返回) + 轨迹点列表

提示: 先 COUNT 再 LIMIT。若 totalCount > limit,说明有数据未返回,请缩小时间范围或调大 limit。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo最多返回点数,默认500,最大5000
endTimeNo结束时间,格式 "2026-07-09 18:00:00"
tagCodeYes标签编码,如 UWB001
startTimeNo开始时间,格式 "2026-07-09 08:00:00"
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds context: it queries from location_data table, returns totalCount and pointCount, and explains limit behavior. This goes beyond annotations.

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 well-structured with an emoji header, a clear parameter list with formats, return structure, and a practical tip. Every sentence adds value, no redundancy.

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?

Although no output schema, the description explains return fields (totalCount, pointCount, trajectory points) and includes a pagination hint. This is sufficient for a query tool with moderate complexity.

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%, so the schema already documents parameters. The description reinforces parameter meanings, adds format examples for time strings, and notes limit max 5000. This provides marginal additional value.

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 '查询标签的历史位置轨迹' (query tag's historical location trajectory), using a specific verb and resource. It distinguishes from sibling tools like get_tag_location (likely current location) and list_tags (list all tags).

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?

The description includes a tip about using COUNT before LIMIT and advises to narrow time range or increase limit if totalCount exceeds limit. This provides practical guidance, though it doesn't explicitly state when not to use the tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sweet-dog-cyber/pls-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server