Skip to main content
Glama

Compare places side by side

dogpolicies_compare_places
Read-onlyIdempotent

Which of these places is better for my dog: Carmel Beach or Asilomar, two parks, three hotels? Sets two to six known places side by side, fact by fact. Input: ids from search results ("carmel-beach", "asilomar-state-beach"); an exact name or a near miss resolves to the one clear match. Returns one row per fact (dogs allowed, leash rule, where dogs may go, pet fee, weight limit, pets per room, restrictions) and one column per place, with confidence, freshness, who confirmed it, and a citation for each. An id that matches nothing is listed under missing with close matches while the rest are still compared (outcome partial); fewer than two found is no_match with suggestions.

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": {
      "ids": "<ids>"
    },
    "name": "dogpolicies_compare_places"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesTwo to six place ids from search results
response_formatNo'markdown' for readable text, 'json' for structured datamarkdown

Output Schema

NameRequiredDescriptionDefault
codeNoWith an outcome other than ok: not_found, invalid, unavailable
nextNoCalls that would answer the question, in words
rowsYes
as_ofYesDate the data was built (YYYY-MM-DD)
placesYes
licenseYes
messageNoWhat happened, in a sentence
missingNoIds nothing matched, each with its close matches
nearestNoWhen nothing is inside the radius: the nearest places in the data, with distance_miles
outcomeNoAbsent or ok: a normal answer. no_match: nothing in the data matches, see did_you_mean, nearest and next. bad_input: the arguments cannot be used as given, see next. partial: some of the ids were found, see missing. unavailable: a live source could not be read. None of these is an error.
acceptedNoWith bad_input: each argument that could not be read, with the values it accepts
did_you_meanNoClose matches to what was asked for: towns, places, slugs or brands, best first
resolved_fromNoSet when a word was read as the value the tool uses: hotel as lodging, NB as north. Each key is the argument; asked is what was sent, used what it was read as
attribution_urlYes
attribution_textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / places / items / properties / holiday_hours
      Added value: +{
      +  "description": "Hours the business publishes for a named day that has not passed",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "date": {
      +        "description": "The day the hours are for (YYYY-MM-DD)",
      +        "type": "string"
      +      },
      +      "holiday": {
      +        "description": "The day's name as published",
      +        "type": "string"
      +      },
      +      "hours": {
      +        "description": "The hours as published",
      +        "type": "string"
      +      },
      +      "open": {
      +        "description": "false: the business or hospital says it is closed that day",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "date",
      +      "open"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / places / items / properties / meals
      Added value: +{
      +  "description": "Meals a restaurant or cafe says it serves",
      +  "items": {
      +    "enum": [
      +      "breakfast",
      +      "brunch",
      +      "lunch",
      +      "dinner"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / accepted
      Added value: +{
      +  "additionalProperties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "description": "With bad_input: each argument that could not be read, with the values it accepts",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / places / items / properties / answer / description
      Added value: +"The one-line answer; while a seasonal rule applies today it leads with it (see today)"
    • addedOutput schema / properties / places / items / properties / closed_now
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present only when Caltrans reports this rest area fully closed now. Live feed data, not a verified rule: check quickmap.dot.ca.gov",
      +  "properties": {
      +    "fetched_at": {
      +      "description": "When the conditions loop read the feed",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "description": "Caltrans' own reason, as published",
      +      "type": "string"
      +    },
      +    "source": {
      +      "const": "Caltrans",
      +      "type": "string"
      +    },
      +    "until": {
      +      "description": "Caltrans' end time (ISO); null when no end is set",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "reason",
      +    "until",
      +    "source",
      +    "fetched_at"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / places / items / properties / today
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Only for a place with seasonal dog rules (plover nesting season, summer beach hours): which applies on the server's date, until when, and which starts next, with the source. Repeat sentence with the answer.",
      +  "properties": {
      +    "date": {
      +      "description": "The date this was computed for: the server's date",
      +      "type": "string"
      +    },
      +    "in_effect": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "access": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "yes",
      +                  "yes_restricted",
      +                  "no"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "area": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "days_left": {
      +            "type": "number"
      +          },
      +          "ends": {
      +            "description": "Last day of this run (YYYY-MM-DD)",
      +            "type": "string"
      +          },
      +          "leash": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "rule": {
      +            "description": "The seasonal rule in plain words",
      +            "type": "string"
      +          },
      +          "season": {
      +            "description": "When it runs, in the source's dates: \"July 1 to May 15\"",
      +            "type": "string"
      +          },
      +          "starts": {
      +            "description": "First day of this run (YYYY-MM-DD)",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "rule",
      +          "season",
      +          "area",
      +          "access",
      +          "leash",
      +          "starts",
      +          "ends",
      +          "days_left"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "in_season": {
      +      "description": "true: a seasonal rule is in effect on that date; null: the source gives a season without dates",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "next": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "access": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "yes",
      +                    "yes_restricted",
      +                    "no"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "area": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "ends": {
      +              "description": "Last day of this run (YYYY-MM-DD)",
      +              "type": "string"
      +            },
      +            "in_days": {
      +              "type": "number"
      +            },
      +            "leash": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "rule": {
      +              "description": "The seasonal rule in plain words",
      +              "type": "string"
      +            },
      +            "season": {
      +              "description": "When it runs, in the source's dates: \"July 1 to May 15\"",
      +              "type": "string"
      +            },
      +            "starts": {
      +              "description": "First day of this run (YYYY-MM-DD)",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "rule",
      +            "season",
      +            "area",
      +            "access",
      +            "leash",
      +            "starts",
      +            "ends",
      +            "in_days"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "publisher": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "quote": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sentence": {
      +      "description": "Leads answer and citation while a seasonal rule applies or starts within 14 days; null otherwise",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source_url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "starts_soon": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "access": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "yes",
      +                  "yes_restricted",
      +                  "no"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "area": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ends": {
      +            "description": "Last day of this run (YYYY-MM-DD)",
      +            "type": "string"
      +          },
      +          "in_days": {
      +            "type": "number"
      +          },
      +          "leash": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "rule": {
      +            "description": "The seasonal rule in plain words",
      +            "type": "string"
      +          },
      +          "season": {
      +            "description": "When it runs, in the source's dates: \"July 1 to May 15\"",
      +            "type": "string"
      +          },
      +          "starts": {
      +            "description": "First day of this run (YYYY-MM-DD)",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "rule",
      +          "season",
      +          "area",
      +          "access",
      +          "leash",
      +          "starts",
      +          "ends",
      +          "in_days"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "undated": {
      +      "description": "Seasons the source states without dates: not known to apply",
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "access": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "yes",
      +                  "yes_restricted",
      +                  "no"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "area": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "leash": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "rule": {
      +            "description": "The seasonal rule in plain words",
      +            "type": "string"
      +          },
      +          "season": {
      +            "description": "When it runs, in the source's dates: \"July 1 to May 15\"",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "rule",
      +          "season",
      +          "area",
      +          "access",
      +          "leash"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "verified_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "date",
      +    "in_season",
      +    "sentence",
      +    "in_effect",
      +    "starts_soon",
      +    "next",
      +    "undated",
      +    "source_url",
      +    "publisher",
      +    "quote",
      +    "verified_at"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / resolved_from
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "asked": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "used": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "asked",
      +      "used"
      +    ],
      +    "type": "object"
      +  },
      +  "description": "Set when a word was read as the value the tool uses: hotel as lodging, NB as north. Each key is the argument; asked is what was sent, used what it was read as",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. Changed7 schema fields changed
    • addedOutput schema / properties / code
      Added value: +{
      +  "description": "With an outcome other than ok: not_found, invalid, unavailable",
      +  "type": "string"
      +}
    • addedOutput schema / properties / did_you_mean
      Added value: +{
      +  "description": "Close matches to what was asked for: towns, places, slugs or brands, best first",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "description": "What happened, in a sentence",
      +  "type": "string"
      +}
    • addedOutput schema / properties / missing
      Added value: +{
      +  "description": "Ids nothing matched, each with its close matches",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / nearest
      Added value: +{
      +  "description": "When nothing is inside the radius: the nearest places in the data, with distance_miles",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / next
      Added value: +{
      +  "description": "Calls that would answer the question, in words",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / outcome
      Added value: +{
      +  "description": "Absent or ok: a normal answer. no_match: nothing in the data matches, see did_you_mean, nearest and next. bad_input: the arguments cannot be used as given, see next. partial: some of the ids were found, see missing. unavailable: a live source could not be read. None of these is an error.",
      +  "enum": [
      +    "ok",
      +    "partial",
      +    "no_match",
      +    "bad_input",
      +    "unavailable"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare a safe, idempotent read; the description goes well beyond that with the output shape (one row per fact, one column per place) and per-value provenance, confidence, freshness, and citations. It also discloses degraded-path behavior precisely: unmatched ids go to 'missing' with close matches under outcome=partial, and fewer than two found yields no_match with suggestions.

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 core behavior is front-loaded and the outcome vocabulary (partial, no_match) is compactly stated. The opening rhetorical question and the 'Carmel Beach or Asilomar, two parks, three hotels' illustration are illustrative rather than functional, costing a small amount of space before the definition begins.

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 two-parameter read tool with a full output schema, the description covers input resolution, cardinality limits, output arrangement, and both failure outcomes. Nothing an agent needs in order to call it correctly or interpret a partial result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, and the description adds real meaning for 'ids': example id strings, the rule that an exact name or near miss resolves to the single clear match, and the 2–6 cardinality rationale. The response_format parameter is left to the schema, which is acceptable.

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: 'Sets two to six known places side by side, fact by fact.' The word 'known' plus the requirement of ids from search results clearly separates it from search_places (discovery) and get_place (single lookup). An agent can distinguish the operation without opening the 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?

Tells the agent the precondition for use (two to six ids obtained from search results) and shows the exact id format. It does not explicitly name a sibling to use instead when the place is unknown, leaving the 'search first' route to inference, but the context is otherwise 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.