Skip to main content
Glama

Check interface restrictions

check_interface_restrictions
Read-onlyIdempotent

Read declared and observed geo-restrictions for a DeFi interface. Use this when checking a protocol's interface restrictions, optionally for a country.

Input Schema

NameRequiredDescriptionDefault
countryNoISO-3166 alpha-2 country code; omit for all observed countries.
protocolYesProtocol name or interface identifier to match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds that results include both declared and observed restrictions, which is useful, but it does not add richer behavioral context such as return shape, pagination, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is two efficient sentences with the core purpose front-loaded. The second sentence adds usage context without redundant framing or wasted language.

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 simple read-only tool with full schema coverage and strong annotations, the description gives enough context to call it correctly. The main remaining gap is that it does not clarify how it relates to the similar sibling list_restricted_interfaces.

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 description coverage is 100%, so the schema already documents both protocol and country. The description notes that country is optional but adds no formatting or matching semantics beyond what the schema provides, making the baseline 3 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?

The description states a specific verb and resource: read declared and observed geo-restrictions for a DeFi interface. It is clear on its own, but it does not distinguish this tool from the sibling list_restricted_interfaces, which appears closely related.

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 explicitly says to use this when checking a protocol's interface restrictions, optionally for a country. That gives clear context, but it does not state when to use a sibling tool instead or any exclusions.

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.