Skip to main content
Glama
BACH-AI-Tools

Geocoding By API Ninjas

v1geocoding

Convert city names to geographic coordinates using API Ninjas service. Provide city, optional state and country for precise location mapping.

Instructions

API Ninjas Geocoding API endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesCity name.
stateNoUS state (for United States cities only).
countryNoCountry name, 2-letter ISO country code, or 3-letter ISO country code.
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description does not reveal any behavioral traits such as rate limits, authentication needs, error handling, or what the tool returns (e.g., coordinates). It lacks essential details for a tool that likely performs external API calls.

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

Conciseness2/5

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

The description is a single phrase 'API Ninjas Geocoding API endpoint', which is overly concise to the point of under-specification. It fails to front-load key information about the tool's function, making it inefficient for quick understanding. While brief, it lacks substance and does not earn its place as a helpful description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a geocoding tool (likely involving external API calls and coordinate outputs), the description is incomplete. No annotations exist, and there is no output schema, so the description should compensate by explaining return values or behavior, but it does not. It fails to provide enough context for effective use.

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?

The input schema has 100% description coverage, with clear parameter descriptions (e.g., 'City name', 'US state (for United States cities only)'). The description adds no additional meaning beyond the schema, but the schema is comprehensive, so the baseline score of 3 is appropriate as it adequately documents parameters without extra value from the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'API Ninjas Geocoding API endpoint' restates the tool name 'v1geocoding' and adds minimal context (the provider name). It does not specify what the tool does (e.g., convert addresses to coordinates), making the purpose vague. It distinguishes from the sibling 'v1reversegeocoding' only by name, not by functional difference.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool versus alternatives. The description does not mention the sibling tool 'v1reversegeocoding' or any other context for usage. There is no indication of prerequisites, constraints, or typical scenarios for application.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/bachai-geocoding-by-api-ninjas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server