Skip to main content
Glama

Pair workouts

pair_activities
Idempotent

Pair a completed activity with the planned activity it fulfills. Both must belong to the user.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "completedActivityId": "<completedActivityId>",
      "plannedActivityId": "<plannedActivityId>"
    },
    "name": "pair_activities"
  }
}

Input Schema

NameRequiredDescriptionDefault
plannedActivityIdYes
completedActivityIdYes

Output Schema

NameRequiredDescriptionDefault
pairedYes
plannedActivityIdYes
completedActivityIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds a genuine precondition beyond those fields — 'Both must belong to the user' — which tells the agent about an ownership authorization constraint. It does not say what happens if an activity is already paired or what errors arise on ownership mismatch.

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 short sentences with no filler. The core action is front-loaded and the ownership constraint follows immediately, so an agent gets the essential facts in a single read.

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?

Complexity is low (two required string IDs), an output schema exists so return values need not be described, and annotations cover safety and idempotency. The description supplies the one non-obvious behavioral fact — the ownership precondition — though it stops short of describing re-pairing or failure behavior.

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 0%, so the description must carry the burden, and it does partially: it maps the two parameters to their roles (a completed activity and the planned activity it fulfills) and states both must be owned by the user. It adds no ID format, no indication of whether pairing replaces an existing pairing, and no detail on ordering or types beyond what the schema's minLength already enforces.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (pair) and both resources (completed activity, planned activity it fulfills), so the operation is unambiguous. It does not explicitly contrast with the sibling unpair_activity, but the pairing semantics are clear enough for an agent to select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'the planned activity it fulfills' implies the usage context — reconciling a finished workout against a plan — but there is no explicit when-to-use or when-not guidance, no mention of prerequisites, and no reference to an alternative (e.g., unpair_activity to reverse).

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