Skip to main content
Glama

Sales tax on a job

quote_sales_tax
Read-onlyIdempotent

What sales tax to charge on a job, line by line, with the jurisdiction, the rate and the statute behind each decision — the same engine that prices the real invoice, so this quote IS what the customer will be charged. Tax on work at a property is sourced to the JOB SITE, never the billing address. WARNING: an undetermined result is NOT zero tax — it means the rate could not be sourced and the document must not be issued.

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": {
      "lines": "<lines>",
      "service_address": "<service_address>"
    },
    "name": "quote_sales_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoPrice it as at this date. Defaults to today.
linesYesThe job broken into lines. Whether labor is taxable depends on what kind of work it is, so split labor from materials rather than sending one total.
job_idNoThe job this is for (from list_work_orders). Send it whenever you have it: a capital-improvement certificate (e.g. NY ST-124) is held per job, and only a quote that names the job finds it. A job that is not this business's is ignored.
contract_typeNolump_sum or time_and_materials, where the contract form decides the treatment.
customer_emailNoThe paying customer's email. A customer with an exemption certificate on file (an exempt organization, direct pay) is only found when the quote names them; with a job_id and no email, the customer who dispatched the job is used.
property_classNo
service_addressYes

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses two critical behavioral traits: the result is guaranteed to match the real invoice, and `undetermined` means unsourced rather than zero tax with a hard downstream consequence. The jurisdiction-sourcing rule adds real execution semantics that no annotation covers.

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?

It is front-loaded: the capability and its authority come first, the sourcing rule second, and the failure mode last in a capitalized warning. Every clause carries a rule or a consequence; nothing is restated from the annotations or the schema.

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?

For a nested, 7-parameter quoting tool with an output schema, the description covers the decisive behaviors an agent needs: line splitting implied by line-by-line quoting, job-site sourcing, and the undetermined failure mode. The one gap is that it doesn't say how conflicting or missing rates should be resolved beyond the warning, though the schema covers much of that.

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?

With schema coverage at 71%, the schema already documents most fields, but the description adds the cross-cutting rule that tax follows the job site rather than the billing address, which the schema does not state. The job_id and customer_email hints about certificate lookup largely echo schema text, so the added value is real but partial.

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 states a specific verb and resource — quoting sales tax on a job, line by line — and declares what the answer contains (jurisdiction, rate, statute). It also signals authority ("the same engine that prices the real invoice"), which separates it from an estimating/approximation tool. It never names a sibling such as quote_prices or tax_summary, so differentiation is inferred rather than stated.

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?

It gives clear conditions for use: tax is sourced to the JOB SITE, never the billing address, and an `undetermined` outcome must block document issuance. It also implicitly routes parameter choices (send job_id whenever available, send street when the ZIP crosses a county line). It does not name an alternative tool or state an explicit when-not-to-use case.

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