Skip to main content
Glama

compare_schools

Read-onlyIdempotent

Compare schools across source-labeled fact categories. Missing values are explicit nulls.

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": {
      "school_ids": "<school_ids>"
    },
    "name": "compare_schools"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional comma-separated field keys, for example "acceptance_rate,sat_composite_p50". Keys come from get_field_dictionary; its finance (endowment) entries cannot be selected here. Unknown keys are dropped. When set, fields replaces the category selection.
categoriesNoOptional comma-separated categories. Valid for compare: identity, admissions, enrollment, cost, aid, outcomes, sources. Defaults to admissions, cost, aid, outcomes. Finance is rejected here; use get_school_facts for endowment data. The call fails if no name is recognized. If fields is also set, fields decides the columns.
school_idsYesArray of canonical school_id values from search_schools results. Duplicates are removed and only the first 25 are compared. An id with no public data still gets a row, with every value null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / categories / description
      Previous value: -"Optional comma-separated categories. Valid for compare: identity, admissions, enrollment, cost, aid, outcomes, sources. The finance category is facts-only; use get_school_facts for endowment data."New value: +"Optional comma-separated categories. Valid for compare: identity, admissions, enrollment, cost, aid, outcomes, sources. Defaults to admissions, cost, aid, outcomes. Finance is rejected here; use get_school_facts for endowment data. The call fails if no name is recognized. If fields is also set, fields decides the columns."
    • addedInput schema / properties / fields / description
      Added value: +"Optional comma-separated field keys, for example \"acceptance_rate,sat_composite_p50\". Keys come from get_field_dictionary; its finance (endowment) entries cannot be selected here. Unknown keys are dropped. When set, fields replaces the category selection."
    • addedInput schema / properties / school_ids / description
      Added value: +"Array of canonical school_id values from search_schools results. Duplicates are removed and only the first 25 are compared. An id with no public data still gets a row, with every value null."
  2. First observed

TDQS

B3.2/5.0
Behavior3/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 safety and idempotency are covered. The description adds a genuine output-shape trait – 'Missing values are explicit nulls' – but says nothing about the 25-school cap, duplicate handling, or failure behavior beyond what is already in the schema.

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?

Two short, front-loaded sentences with zero filler; the core purpose leads and the null behavior follows. It is efficient, though the brevity borders on under-specification rather than maximal clarity.

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 no output schema, the description should convey the shape of results; 'source-labeled fact categories' plus explicit nulls does that only partially. The inputs are fully documented in the schema, but an agent gets little sense of row/column structure or what the labels mean.

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% and the parameter descriptions already explain field keys, category validity, defaults, finance rejection, and the 25-id/dedup rules. The description adds essentially no parameter-level meaning beyond noting nulls for missing values, so 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?

States a specific verb and resource ('compare schools') plus the scope of comparison ('source-labeled fact categories'), which is clearer than a bare name restatement. It does not explicitly contrast with get_school_facts (single-school facts) or search_schools, so sibling differentiation is left to the schema text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description contains no when-to-use or when-not-to-use guidance and names no alternative. The only routing advice (use get_school_facts for endowment, finance rejected here) lives in the parameter schema, not the description.

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.