Skip to main content
Glama

route_lead

Submit a consented homeowner project to EnergyAI’s guarded installer-matching workflow — free to you and the homeowner. EnergyAI immediately screens and routes currently available approved installers; unmatched projects remain recorded for safety-controlled follow-up. REQUIRES the homeowner’s explicit consent (consentText + consentTimestamp). Returns a leadId you can quote back to the user. Prefer get_quote_link if you don’t already have that consent in hand. Inputs: contractorCategory (required), zipCode (required), contactName (required), contactEmail (required), consentText (required), consentTimestamp (required), city, state, contactPhone, propertyType, monthlyBillRange, budgetRange, timeline, consentVersion. Cost: always free, no key needed. Example: {"contractorCategory":"solar_installation","zipCode":"59715","contactName":"Jane Example","contactEmail":"jane@example.com","consentText":"","consentTimestamp":"2026-11-25T15:00:00Z"} [always free — no API key required]

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": {
      "zipCode": "59715",
      "timeline": "3_months",
      "consentText": "<canonical text returned by check_incentives.consentTextForRouting, shown to and accepted by the homeowner>",
      "contactName": "Jane Doe",
      "contactEmail": "jane@example.com",
      "consentTimestamp": "2026-07-12T19:00:00Z",
      "monthlyBillRange": "150_250",
      "contractorCategory": "solar_installation"
    },
    "name": "route_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
stateNoTwo-letter state code. Derived from ZIP when omitted.
apiKeyNoOptional existing EnergyAI key for hosts that cannot change Authorization headers. Use it to retain account identity for discovery and get_builder_upgrade_link after a trial. Removed before tool execution and persistence. Omit when the Bearer header is attached; never show the key to the user.
zipCodeYes5-digit US ZIP code of the project (route_lead dispatches into a US installer network only today).
timelineNoe.g. asap | 3_months | 6_months | exploring
budgetRangeNo
consentTextYesEXACT consent text shown to and accepted by the homeowner. Fetch the canonical text from the tool result of check_incentives or use your own — alternate text REQUIRES consentVersion.
contactNameYesHomeowner's name.
contactEmailYesHomeowner's email.
contactPhoneNo
propertyTypeNo
consentVersionNoRequired when consentText is not the canonical EnergyAI consent text.
consentTimestampYesWhen the homeowner consented.
monthlyBillRangeNolt_75 | 75_150 | 150_250 | 250_400 | gt_400 | unknown
contractorCategoryYessolar_installation | battery_storage | ev_charger | energy_audit | insulation_weatherization | heat_pump

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / apiKey
      Added value: +{
      +  "description": "Optional existing EnergyAI key for hosts that cannot change Authorization headers. Use it to retain account identity for discovery and get_builder_upgrade_link after a trial. Removed before tool execution and persistence. Omit when the Bearer header is attached; never show the key to the user.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / zipCode / description
      Previous value: -"5-digit US ZIP code of the project."New value: +"5-digit US ZIP code of the project (route_lead dispatches into a US installer network only today)."
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "consentText": "<canonical text returned by check_incentives.consentTextForRouting, shown to and accepted by the homeowner>",
      +    "consentTimestamp": "2026-07-12T19:00:00Z",
      +    "contactEmail": "jane@example.com",
      +    "contactName": "Jane Doe",
      +    "contractorCategory": "solar_installation",
      +    "monthlyBillRange": "150_250",
      +    "timeline": "3_months",
      +    "zipCode": "59715"
      +  }
      +]
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses cost (always free, no key), the immediate routing to approved installers, that unmatched projects are retained for follow-up, and that a leadId is returned. It stops short of saying how many installers may contact the homeowner, what happens on an invalid ZIP, or whether the lead can be withdrawn — relevant for a tool that shares contact data.

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?

Front-loaded and scannable, but it wastes space: the cost message appears twice ('Cost: always free, no key needed' and the bracketed '[always free — no API key required]'), and the enumerated input list duplicates the required-parameters array in 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 15-parameter mutation with no output schema, the definition covers the essentials: consent sourcing, cost, and the returned leadId. Minor tension remains — it says 'no key needed' while the schema exposes an optional apiKey, and post-submission behavior (installer outreach, follow-up timing) is left implicit.

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 coverage is 73%, so most fields are already documented in the schema, and the description's input list largely restates them. The one genuinely additive note is the requirement pairing of consentText + consentTimestamp and the example payload, but the remaining optional fields (city, state, contactPhone, propertyType, budgetRange) are not clarified beyond the schema.

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: submit a consented homeowner project into an installer-matching workflow. It also distinguishes itself from the sibling get_quote_link by naming the consent prerequisite that separates the two paths.

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?

Explicitly gives the precondition (homeowner consent with consentText + consentTimestamp) and names the alternative tool with the condition that selects it: 'Prefer get_quote_link if you don't already have that consent in hand.' This is when-to-use, when-not-to-use, and the fallback in two sentences.

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.