Skip to main content
Glama

linepref: check before you pay, page reader, business lookup

Look up a local business from its website

business_lookup
Read-onlyIdempotent

Call this whenever you need facts about a local business (restaurant, salon, clinic, trade, shop, hotel) and you have its website: contact details, how to book, opening hours, address. Faster and cheaper than fetching and reading the site yourself: returns about 150 tokens of JSON in under a second, covering the home, booking and contact pages. Fields: online booking link and booking software, phone numbers, public emails, street address, opening hours, price range, social profiles.

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": {
      "website": "<website>"
    },
    "name": "business_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
websiteYesThe business's website: a domain (example.com) or a full URL

Output Schema

NameRequiredDescriptionDefault
nameNo
emailsNo
phonesNo
socialNo
addressNo
bookingYes
websiteYesFinal URL of the site that was read
categoryNoschema.org type when the site declares one
descriptionNo
price_rangeNo
opening_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "address": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "booking": {
      +      "properties": {
      +        "online": {
      +          "description": "True when an online booking path was found",
      +          "type": "boolean"
      +        },
      +        "prices_url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "system": {
      +          "description": "Booking platform, e.g. fresha, opentable, doctolib",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "description": "Link to book online",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "category": {
      +      "description": "schema.org type when the site declares one",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "emails": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "name": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "opening_hours": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "phones": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "price_range": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "social": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "website": {
      +      "description": "Final URL of the site that was read",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "website",
      +    "booking"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world traits, but the description adds genuinely new behavioral facts: roughly 150 tokens of JSON, sub-second latency, and which pages are crawled (home, booking, contact). It does not discuss failure modes (missing site, non-business domain) or staleness of the data, 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.

Conciseness4/5

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

The definition is front-loaded with the usage trigger and justification before the field inventory, and most of it earns its place. The long parenthetical lists of business types and returned fields add some bulk that could be trimmed given a full output schema exists.

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?

For a one-parameter read-only lookup with annotations and an output schema, the description covers purpose, cost, latency, crawl scope and expected fields. Nothing an agent needs to decide to call it correctly is missing.

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 100% on the single required parameter, so the schema already documents that 'website' accepts a domain or full URL. The description only implies the requirement ('and you have its website') without adding format, normalization, or edge-case detail 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?

The description pairs a specific verb ('look up') with a precise resource ('facts about a local business ... from its website') and enumerates the entity types (restaurant, salon, clinic, trade, shop, hotel) so an agent can match intent immediately.

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 an explicit trigger ('Call this whenever you need facts about a local business and you have its website') and contrasts it with the obvious alternative of fetching and reading the site. It does not name any sibling tool or state exclusion conditions, so it stops short of full routing guidance.

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