Skip to main content
Glama

Field Service Business Platform by Doing Work

quotes_linesFromTasks

Turn the flat rate tasks a worker picked into quote lines for quotes.create: shared tasks, or tasks per good, better, best option. Uses the member price when the customer has an active maintenance plan. Writes nothing; send the lines the worker approves to quotes.create.

Input Schema

NameRequiredDescriptionDefault
tasksNoTasks in every option (or the whole quote when there are no options)
optionsNoGood, better, best: each option's own tasks
shop_idYes
customer_idNo

Output Schema

NameRequiredDescriptionDefault
planYes
linesYes
memberYes
detailsYes
optionsYes
option_totalsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations, so the description carries the full burden; it does add real value by declaring 'writes nothing' (non-mutating) and disclosing the member-price rule tied to an active maintenance plan. It omits error behavior for invalid item_ids, permission requirements, and how unpriced/inactive tasks are handled.

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 dense sentences with zero filler; the core transform, the pricing rule, and the non-mutation guarantee are all front-loaded.

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?

With an output schema present, return values needn't be described, and the description covers purpose, pricing logic, and side-effect profile adequately. Minor gaps remain around validation failures and whether approval flow is required, but the essentials for correct invocation are present.

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 50%, and the description compensates by explaining that options are good/better/best task groupings and that customer_id drives the member-price decision. shop_id is left implicit, but the two semantically non-obvious parameters are covered.

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+resource: turning flat-rate tasks into quote lines for quotes.create, with two explicit modes (shared tasks vs. good/better/best options). This clearly differentiates it from the sibling quotes_create, which consumes the output.

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?

Implies the workflow position (call before quotes_create, then send worker-approved lines) and names the downstream sibling. It doesn't explicitly state when NOT to use it or name an alternative path, but the context is unambiguous.

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