Skip to main content
Glama

Get a local contractor's record

get_local_contractor
Read-onlyIdempotent

One contractor's record in a city, from the city's building permits: its permitted home jobs in the last 12 months and 2 years by kind of job, where it ranks in its trades, the parts of the city it works in most, its phone, address and website where known, its state license where the state's registry lists one under its name, and its deal.ai page. Give its name as find_local_contractors returned it, or its deal.ai link.

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": {
      "city": "<city>",
      "contractor": "<contractor>"
    },
    "name": "get_local_contractor"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesThe city, by name: one of Austin, TX; New York, NY; Seattle, WA; Chicago, IL; Philadelphia, PA; New Orleans, LA; Orlando, FL; Cincinnati, OH; Baton Rouge, LA; San Diego County, CA; Miami-Dade County, FL; Miami, FL; Cape Coral, FL; Bellevue, WA; Cleveland, OH; Sacramento County, CA; Raleigh, NC; Greensboro, NC; Naperville, IL; Columbus, OH; Las Vegas, NV; Minneapolis, MN; Nashville, TN; Detroit, MI; Denver, CO; Las Cruces, NM; Bellingham, WA; Anaheim, CA; Tallahassee, FL; Marin County, CA. No other city has data yet.
contractorYesThe contractor: its name as find_local_contractors gave it, or its deal.ai link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / city / description
      Previous value: -"The city, by name: one of Austin, TX; New York, NY; Seattle, WA; Chicago, IL; Philadelphia, PA; New Orleans, LA; Orlando, FL; Cincinnati, OH; Baton Rouge, LA; San Diego County, CA; Miami-Dade County, FL; Miami, FL; Cape Coral, FL; Bellevue, WA; Cleveland, OH. No other city has data yet."New value: +"The city, by name: one of Austin, TX; New York, NY; Seattle, WA; Chicago, IL; Philadelphia, PA; New Orleans, LA; Orlando, FL; Cincinnati, OH; Baton Rouge, LA; San Diego County, CA; Miami-Dade County, FL; Miami, FL; Cape Coral, FL; Bellevue, WA; Cleveland, OH; Sacramento County, CA; Raleigh, NC; Greensboro, NC; Naperville, IL; Columbus, OH; Las Vegas, NV; Minneapolis, MN; Nashville, TN; Detroit, MI; Denver, CO; Las Cruces, NM; Bellingham, WA; Anaheim, CA; Tallahassee, FL; Marin County, CA. No other city has data yet."
  2. Changed1 schema field changed
    • changedInput schema / properties / city / description
      Previous value: -"The city, by name: one of Austin, TX; New York, NY; Seattle, WA; Chicago, IL; Philadelphia, PA; New Orleans, LA; Orlando, FL; Cincinnati, OH; Baton Rouge, LA; San Diego County, CA. No other city has data yet."New value: +"The city, by name: one of Austin, TX; New York, NY; Seattle, WA; Chicago, IL; Philadelphia, PA; New Orleans, LA; Orlando, FL; Cincinnati, OH; Baton Rouge, LA; San Diego County, CA; Miami-Dade County, FL; Miami, FL; Cape Coral, FL; Bellevue, WA; Cleveland, OH. No other city has data yet."
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds substantive behavior beyond that: the exact scope of returned data (permit counts at 12 months and 2 years, trade rankings, neighborhood coverage, contact details, state license, deal.ai page). It omits what happens when a contractor or city is not found, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded correctly — what the tool returns comes first, the input constraint last. However, the core is a single sprawling sentence with a long comma-chained field list that is harder to parse than a short structured enumeration would be.

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 no output schema, the description carries the burden of describing returns and does so comprehensively, covering every category of data an agent would need to decide whether to call it. It lacks only failure-mode detail, such as behavior for an unrecognized contractor name or an unsupported city.

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%, with the city parameter even enumerating all supported cities, so the schema already carries parameter meaning. The description's note about passing the name as find_local_contractors returned it or the deal.ai link restates the contractor field's schema description rather than extending it. Baseline 3 applies.

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 ('One contractor's record in a city, from the city's building permits') and immediately enumerates what that record contains. The singular 'one contractor' contrasts cleanly with the sibling find_local_contractors, so an agent can tell lookup-by-identity from search apart without opening a schema.

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?

The closing sentence tells the agent where the identifier must come from ('as find_local_contractors returned it, or its deal.ai link'), which effectively sequences this tool after the search tool. It stops short of explicit when-not-to-use guidance or naming an alternative lookup path, but the prerequisite context is clear.

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.