Skip to main content
Glama
ojimpo
by ojimpo

query_records

Query daily activity records within a date range, filtered by source or category, with aggregation for weekly or monthly summaries.

Instructions

Query raw daily activity records (one row per date x source x category: minutes, raw_value, raw_unit). Requires a from/to date range (YYYY-MM-DD). Filter by source and/or category (see list_sources). For ranges over ~2 months prefer group_by week or month to keep output small; raw mode is capped by 'limit' and reports truncation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesEnd date YYYY-MM-DD (inclusive).
fromYesStart date YYYY-MM-DD (inclusive).
limitNoMax raw rows (default 500).
sourceNoFilter by source id, e.g. lastfm.
categoryNoFilter by category, e.g. music.
group_byNoAggregate sums per period instead of raw rows.
Behavior3/5

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

No annotations provided, so description carries full burden. Discloses truncation behavior and grouping aggregation. However, does not mention return format, permissions, or rate limits. Adequate but could be richer.

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?

4 sentences, front-loaded with purpose, efficient. Every sentence adds value. Could be slightly more structured but overall concise.

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?

For a query tool with 6 params and no output schema, description covers key aspects: data format, grouping, filtering, date range, limit, truncation, and reference to list_sources. Complete for typical usage scenarios.

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%, baseline 3. Description adds meaning beyond schema by explaining the data structure (one row per date x source x category) and that grouping aggregates sums. Provides context for source/category filtering via list_sources.

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?

Description clearly specifies 'Query raw daily activity records' with detail on data structure (one row per date x source x category: minutes, raw_value, raw_unit). Distinguishes from siblings like get_recent_activities by focusing on raw daily records with filtering and grouping.

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?

States requirement for from/to date range, suggests filtering by source/category with reference to list_sources, and provides guidance to prefer grouping for ranges over ~2 months to keep output small, mentioning raw mode cap and truncation. Does not explicitly contrast with siblings but gives clear context.

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/ojimpo/health-mcp'

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