Skip to main content
Glama

Pinpal Receipts

Label several lines

label_lines

Put labels on (add) or take them off (remove) several lines at once: by ID (lines, from any months) or by month and numbers. A label that means no receipt makes each line not needed (the label is the reason); taking the last one off makes a line missing again (found with a file). Ask the person before you label many lines. Answers how many changed and the lines as they are now.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "label_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoLabel names (or ids) that already exist in the account. Unknown names are refused; see list_labels.
linesNoThe lines' IDs, like ["#1042", "#1043"], from any months: instead of month and numbers.
monthNoThe month as YYYY-MM, with numbers; or give lines as IDs instead.
removeNoLabel names (or ids) that already exist in the account. Unknown names are refused; see list_labels.
numbersNoThe lines' numbers in the month.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations only declare that this is a non-read-only, non-destructive, closed-world operation. The description adds substantial domain behavior: a label meaning 'no receipt' marks lines as not needed, and removing the last such label reverts a line to missing-your-receipt status. It also states that the tool returns how many lines changed and the lines' current state. This is rich context, though the phrasing is dense and it could say more about side effects on existing labels.

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?

The purpose comes first, followed by domain semantics and the consent rule, so the order is sound and there is no filler. The wording is somewhat tangled, for example 'A label that means no receipt makes each line not needed (the label is the reason)', which costs a little clarity.

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?

No output schema exists, so the description usefully states what is returned (a count and current line state), and it covers both input modes and the label-status side effects. Only the reference to list_labels for validating unknown label names is left to the schema.

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?

The input schema already describes all five parameters at full coverage, which sets the baseline at 3. The description adds a selection rule that the schema only hints at: give line IDs from any months, or give a month and numbers, never both. That operational constraint is useful beyond the field-level docs.

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 uses a specific verb pair and names the resource and scope: it adds or removes labels on several lines at once, selectable either by line IDs from any months or by month plus numbers. It is clearly distinct from siblings like create_label or set_status, and an agent can tell what operation it performs 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 definition gives one explicit usage rule, 'Ask the person before you label many lines', and describes the two alternative selection modes (lines versus month+numbers). It never says when to prefer labeling over other sibling tools, such as changing status or creating or deleting labels, so the choice of tool is only implied.

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