Skip to main content
Glama

SwojaEkipa

Wstępna wycena prac

estimate_work
Read-onlyIdempotent

Oblicz wstępną wycenę prac w PLN na podstawie publicznego cennika jednego fachowca. Najpierw wyszukaj wykonawcę i pobierz jego cennik. Potwierdź zakres, ilości i jednostki, np. 30 m² malowania. Pokaż zakres cen, pozycje bez wyceny i link do profilu. Jeśli brakuje stawek, poproś o doprecyzowanie lub skieruj użytkownika do fachowca.

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": {
      "contractorSlug": "<contractorSlug>",
      "items": "<items>"
    },
    "name": "estimate_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesOd 1 do 20 unikalnych pozycji. OfferingId pochodzi z get_contractor_prices. Quantity podaj w jednostce z cennika.
contractorSlugYesIdentyfikator profilu zwrócony przez search_contractors.

Output Schema

NameRequiredDescriptionDefault
linesYes
totalToYes
currencyYes
totalFromYes
disclaimerYes
profileUrlYes
minimumOrderYes
unpricedOfferingIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: it explains that unmatched items will be surfaced without a quote, that a price range rather than a single number is returned, and that a profile link is included. It stops short of explaining pagination or limits on the 1–20 item array, leaving a small gap.

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 compute action and its data basis are front-loaded in the first sentence, and each subsequent sentence adds a distinct instruction (prerequisite lookup, scope confirmation, output content, fallback). It is a five-sentence block with no true filler, though the output-content sentence partly duplicates what the output schema already conveys.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not enumerate return fields, and annotations already carry the safety profile. It still covers the workflow ordering, the unit/scope confirmation requirement, and the missing-rate fallback, which is everything an agent needs to invoke it correctly for this complexity level.

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 100%, and the schema already states that offeringId comes from get_contractor_prices, that contractorSlug comes from search_contractors, and that quantity must be in the price-list unit. The description's instruction to confirm quantities and units largely restates the schema, adding only an illustrative example. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource: compute a preliminary work estimate in PLN from a single contractor's public price list. It is distinguishable from siblings such as prepare_job or search_contractors because it names the data source (one contractor's cennik) and the output concept (estimate). The currency and single-contractor scope are both stated up front.

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?

Explicit ordering guidance is given: first find the contractor and fetch their price list, then confirm scope, quantities, and units (with a concrete example of 30 m² of painting). It also prescribes a fallback path when rates are missing: ask for clarification or refer the user to the contractor. This covers when to use it, prerequisites, and what to do when the tool cannot fulfil the request.

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