Skip to main content
Glama

Shovels Contractors Search

shovels_contractors_search
Read-onlyIdempotent

Search US construction contractors scoped to a location, with license, work history and aggregate job value. Requires a geo_id (state code, ZIP, or Shovels geo_id from shovels_address_search) plus a permit date range (permit_from / permit_to, YYYY-MM-DD). Job-value fields are returned in both cents and dollars. Example: shovels_contractors_search({ geo_id: "94103", permit_from: "2023-01-01", permit_to: "2024-12-31", contractor_name: "solar", _apiKey: "your-key" })

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "geo_id": "CA",
      "_apiKey": "your-shovels-api-key",
      "permit_to": "2024-12-31",
      "permit_from": "2023-01-01"
    },
    "name": "shovels_contractors_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoResults per page (1-100, default 50).
cursorNoPagination cursor from a previous response `next_cursor`.
geo_idYesLocation scope: a US state code ("CA"), a ZIP code ("94103"), or a Shovels geo_id from shovels_address_search.
_apiKeyYesShovels API key (X-API-Key). Sign up at https://app.shovels.ai/create-account/
permit_toYesConsider permits that started on or before this date (YYYY-MM-DD).
permit_fromYesConsider permits that started on or after this date (YYYY-MM-DD).
permit_tagsNoFilter by work-type tags of the contractor's permits. Prefix "-" to exclude.
include_countNoInclude an approximate total_count on the first page (default false).
property_typeNoFilter by property type: residential, commercial, industrial, etc.
contractor_nameNoFilter by contractor name (partial match, min 3 chars).
contractor_licenseNoFilter by contractor license number.
contractor_min_total_job_valueNoMinimum total job value across the contractor's permits, in CENTS.
contractor_classification_derivedNoFilter by derived contractor classification/specialty. Prefix with "-" to exclude.
contractor_min_total_permits_countNoMinimum number of permits the contractor has.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / contractor_min_total_job_value / description
      Previous value: -"Minimum total job value across the contractor’s permits, in CENTS."New value: +"Minimum total job value across the contractor's permits, in CENTS."
    • changedInput schema / properties / permit_tags / description
      Previous value: -"Filter by work-type tags of the contractor’s permits. Prefix \"-\" to exclude."New value: +"Filter by work-type tags of the contractor's permits. Prefix \"-\" to exclude."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds value beyond that: it discloses that job-value fields come back in both cents and dollars (a real footgun given the input filter is in cents), and that geo_id accepts three distinct formats. It omits pagination behavior (size/cursor) and the fact that include_count returns only an approximate total, which are the remaining behavioral gaps.

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?

Four sentences, front-loaded with the purpose, then the hard requirements, then the return-format caveat, then a concrete call example — a sensible order. The example is somewhat redundant with the schema's own examples array, which costs a little space, but every sentence still carries information.

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

Completeness3/5

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

With 14 parameters and no output schema, the description bears more burden than it carries: it never describes the shape of a returned contractor record, how pagination is followed via cursor, or what the aggregate job-value figure actually aggregates over. It does cover the essentials needed to construct a valid call, which keeps it at minimum viable for a tool this size.

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%, so the schema already documents all 14 parameters including the cents unit on contractor_min_total_job_value and the date formats. The description restates the geo_id formats and date format rather than adding new meaning, though the note that returned values appear in both cents and dollars clarifies the output side of the unit confusion. Baseline 3 is appropriate.

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 opens with a specific verb and resource — 'Search US construction contractors' — and adds the scope (US, location-bound) and the data facets returned (license, work history, aggregate job value). It is distinguishable from shovels_permits_search by resource and from shovels_address_search by the explicit reference to that sibling as a geo_id source. It stops short of stating how it differs from permits search in outcomes, so it is clear but not fully sibling-differentiated.

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?

It states the hard prerequisites (geo_id plus permit_from/permit_to) and routes the agent to shovels_address_search for obtaining a geo_id, which is genuine usage guidance. However, there is no explicit when-not guidance — nothing says when to prefer shovels_permits_search over this contractor-aggregate view, or what happens if the date range is omitted. Usage is implied by the required-parameter statement rather than argued.

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.