Skip to main content
Glama
ravinahp

Surf MCP Server

by ravinahp

get_tides

Retrieve tide information for a specific location and date by providing latitude, longitude, and date to access detailed tide data including high/low tides and station details.

Instructions

Get tide information for a specific location and date.

Args:
    latitude: Float value representing the location's latitude
    longitude: Float value representing the location's longitude
    date: Date string in YYYY-MM-DD format
    
Returns:
    Formatted string containing tide information and station details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latitudeYes
longitudeYes
dateYes

Implementation Reference

  • The handler function for the 'get_tides' tool. It is registered via the @mcp.tool() decorator and executes the tool logic by delegating to StormGlassAPI.
    @mcp.tool()
    async def get_tides(latitude: float, longitude: float, date: str) -> str:
        """Get tide information for a specific location and date.
        
        Args:
            latitude: Float value representing the location's latitude
            longitude: Float value representing the location's longitude
            date: Date string in YYYY-MM-DD format
            
        Returns:
            Formatted string containing tide information and station details
        """
        return await api.get_tide_data(latitude, longitude, date) 
  • Supporting utility in StormGlassAPI class that performs the actual API request to retrieve tide data, formats parameters, handles the HTTP call, and returns formatted tide information.
    async def get_tide_data(self, latitude: float, longitude: float, date: str) -> str:
        """Get tide information for a specific location and date."""
        url = f"{self.api_base}/tide/extremes/point"
        params = {
            "lat": latitude,
            "lng": longitude,
            "start": f"{date}T00:00:00Z",
            "end": f"{date}T23:59:59Z"
        }
        
        param_string = "&".join(f"{k}={v}" for k, v in params.items())
        full_url = f"{url}?{param_string}"
        
        data = await self.make_request(full_url)
        if not data:
            return "Unable to fetch tide data for this location."
        
        return self.format_tide_data(data) 
  • Execution of the MCP server, making the registered 'get_tides' tool available via stdio transport.
    mcp.run(transport='stdio')
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions what the tool returns ('Formatted string containing tide information and station details'), it lacks critical behavioral context such as rate limits, error conditions, authentication requirements, or whether this is a read-only operation. The description provides basic output format but misses important operational details.

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 perfectly structured and concise. It begins with a clear purpose statement, then provides organized sections for arguments and returns with specific formatting details. Every sentence adds value, and the information is front-loaded with the most important details first.

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?

For a 3-parameter tool with no annotations and no output schema, the description provides adequate but incomplete coverage. It explains parameters well and gives output format, but lacks behavioral context like error handling, rate limits, or authentication requirements. The absence of an output schema means the description should ideally provide more detail about the return structure beyond 'formatted string.'

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

Parameters5/5

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

The description provides excellent parameter semantics despite 0% schema description coverage. It clearly explains each parameter's purpose: 'Float value representing the location's latitude/longitude' and 'Date string in YYYY-MM-DD format.' This fully compensates for the lack of schema descriptions and adds meaningful context beyond what the bare schema provides.

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 clearly states the tool's purpose: 'Get tide information for a specific location and date.' It uses a specific verb ('Get') and resource ('tide information'), and specifies the scope ('for a specific location and date'). However, with no sibling tools provided, there's no opportunity to differentiate from alternatives, preventing a perfect score of 5.

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 provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It simply states what the tool does without any context about appropriate usage scenarios. With no siblings listed, this omission is less critical but still represents a gap in guidance.

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/ravinahp/surf-mcp'

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