Skip to main content
Glama
dandyer

jobkeepr-mcp

Add line items to a job

add_line_items

Add billable services or products to an existing scheduled job, using catalog items or stated prices to update the job's invoice.

Instructions

Add billable line items to an EXISTING job. Use when the user wants to add services/products to a job that's already scheduled (e.g., 'add a $50 cable management charge to the Smith job'). For brand-new jobs, use create_job with lineItems instead. Pass unitPrice when the user states a price; omit it to fall back to catalog matching by name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdNoExact job ID. Only use if you have it.
lineItemsYesLine items to add to the job. Include one entry for every billable part the user described. Build them from the account's price catalog and pass catalogItemId on each.
customerNameNoCustomer whose most recent job should receive the line items. Use this when the user names a customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2
  2. Removedv1.0.0
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare the safety profile (readOnly=false, destructive=false, idempotent=false), so the description needn't restate mutability. It adds real behavioral context beyond that: the existing-job precondition, the unitPrice-overrides-catalog rule, and the name-based catalog-matching fallback when price is omitted. It does not mention that repeated calls are non-idempotent and will add duplicate lines, a notable gap for a write tool with idempotentHint=false.

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?

Three tightly written sentences, front-loaded with the action and scope, then the alternative routing, then the price-handling rule. No filler or repetition of the title.

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?

Covers the action, routing, and the key pricing ambiguity for a moderately simple 3-parameter tool whose schema is fully documented. It stops short of describing what the call returns or the non-idempotent duplicate risk, which are the only real omissions.

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%, so the baseline is 3, but the description adds the precedence behavior between unitPrice and catalog name matching that goes slightly beyond the field-level text. It does not explain how jobId and customerName interact for identifying the target job, though the schema covers both.

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?

States a specific verb and resource ('Add billable line items to an EXISTING job') and immediately scopes it against the sibling create_job path. The 'EXISTING' emphasis plus the sibling reference lets an agent distinguish it from create_job without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use trigger with a concrete user utterance example ('add a $50 cable management charge to the Smith job') and names the alternative tool plus its condition for new jobs. Both the positive and negative cases are covered.

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