Skip to main content
Glama

albums_runtime_batch

Get total and mean track duration for up to 20 albums in one API call, with exact results for albums up to 50 tracks and flagged partial totals beyond that.

Instructions

[local-compute] Runtime per album — total and mean track length — for up to 20 albums in one pass (album objects embed the first 50 tracks, so totals are exact for albums up to 50 tracks and flagged as partial above that). Quota: 🟢 one GET /albums?ids= call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketNoISO 3166-1 alpha-2 market code (e.g. 'US'); omit for 'from_token' behaviour
album_idsYesUp to 20 Spotify album IDs
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior5/5

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

With no annotations, the description carries the full burden of behavior disclosure. It reveals local-compute behavior, the exactness limit at 50 tracks, the partial-flagging above that threshold, and the quota cost of one GET /albums?ids= call. This is rich, non-obvious behavioral context that goes well beyond a simple function summary.

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?

Two tight sentences: the purpose is front-loaded, the correctness caveat is contextual, and the quota is stated last. No filler or redundancy; every phrase earns its place.

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?

For a 3-parameter tool with no output schema, the description is complete enough. It covers the batching limit, the exactness boundary, the partial-flagging behavior, and the quota implication. An agent has what it needs to invoke the tool correctly and interpret the result.

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 description coverage is 100%, so the schema already documents all three parameters well. The description reinforces the album_ids batching limit and implies what the computed output means, but it does not add significant new parameter-level semantics beyond the schema.

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 states a specific computation (total and mean track length per album), the resource (albums), and a batching scope (up to 20 in one pass). It clearly distinguishes itself from raw album retrieval tools like get_several_albums by emphasizing local-compute and runtime statistics.

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 makes the intended use clear: computing runtime stats for multiple albums efficiently in one API call. It communicates batching limits and quota impact, which helps an agent decide when to use this tool over per-album alternatives. However, it does not explicitly name sibling tools or state when not to use it.

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/NovaLux12/spotify-mcp-server'

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