Skip to main content
Glama

list_authority_types

Read-onlyIdempotent

Lists the authority types available through this tool, with metadata such as jurisdiction and portal name.

When to use: When you need authority types for a known iso. Pass optional portal name or authority type only to narrow that list. When not: Do not call without an iso from list_jurisdictions. Skip if you already have this authority type list for the same iso and filters.

Parameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased before the query (e.g. BE, or US_CA for a state). portal_name and authority_type are optional. authority_type must match one authority type exactly. With limit, next_id parameters to paginate the results.

Behavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and authority type data. Authority types with total_links of 0 are omitted.

Returns: A list of authority types matching the filters, with pagination information.

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": {
      "iso": "<iso>"
    },
    "name": "list_authority_types"
  }
}

Input Schema

NameRequiredDescriptionDefault
isoYesFilter by Jurisdiction ISO code (e.g. 'US')
limitNoNumber of results to return
next_idNoNext portal ID to return
portal_nameNoFilter by portal name
authority_typeNoFilter by authority type

Output Schema

NameRequiredDescriptionDefault
dataYesPortals in the requested jurisdiction that have crawled links; empty if none match.
messageYesResult message
paginationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / data / items / properties / updated_at
      Added value: +{
      +  "description": "Updated at",
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / items / required
      Previous value: -[
      -  "id",
      -  "iso",
      -  "portal_name",
      -  "authority_type"
      -]New value: +[
      +  "id",
      +  "iso",
      +  "portal_name",
      +  "authority_type",
      +  "updated_at"
      +]
  2. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / next_id
      Added value: +{
      +  "description": "Next portal ID to return",
      +  "type": "number"
      +}
    • removedInput schema / properties / offset
      Removed value: -{
      -  "description": "Number of results to skip",
      -  "type": "number"
      -}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "Portals in the requested jurisdiction that have crawled links; empty if none match.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "authority_type": {
      +            "description": "Authority type",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Authority type ID",
      +            "type": "number"
      +          },
      +          "iso": {
      +            "description": "Jurisdiction ISO",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "portal_name": {
      +            "description": "Portal name",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "iso",
      +          "portal_name",
      +          "authority_type"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "description": "Result message",
      +      "type": "string"
      +    },
      +    "pagination": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "limit": {
      +          "description": "Maximum number of portals returned",
      +          "type": "number"
      +        },
      +        "next_id": {
      +          "description": "Cursor ID for the next page, or null when there is no next page",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "total_count": {
      +          "description": "Total number of matching portals",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total_count",
      +        "limit",
      +        "next_id"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "message",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive, and the description goes well beyond them: OAuth/Bearer auth with 401 conditions, no MCP-layer rate limits and retry safety, no caching, and the non-obvious omission rule that authority types with total_links of 0 are dropped. The only minor redundancy is restating read-only behavior already in annotations.

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?

Labeled sections (When to use / Parameters / Behavior / Returns) make it easy to scan and front-load the purpose. It is slightly verbose in places, e.g. 'Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read' says the same thing twice.

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?

Given an output schema exists and the return shape needn't be re-explained, the description covers everything an agent needs: prerequisites, filter narrowing rules, auth and rate-limit behavior, caching, and the total_links=0 exclusion. Nothing material is missing for a filtered list tool with five parameters.

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 the baseline is 3, but the description adds real meaning: iso is uppercased before the query with concrete examples (BE, US_CA for a state), and authority_type must match exactly rather than partially. It also ties limit and next_id to pagination, though it doesn't explain what next_id refers to (portal ID per the schema).

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?

The opening sentence states a specific verb and resource ('Lists the authority types') and adds scope detail ('with metadata such as jurisdiction and portal name'). It implicitly distinguishes itself from list_jurisdictions via the iso prerequisite, but doesn't explicitly differentiate from close siblings like list_law_types or list_issuing_authorities.

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?

Uses explicit 'When to use' / 'When not' framing: requires an iso obtained from list_jurisdictions and warns against calling without one or re-fetching an identical list. It also clarifies that portal_name and authority_type are only for narrowing, which prevents over-filtering mistakes.

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.