Skip to main content
Glama

search_blogs

Find blog posts by title using the MCP Blog API's search functionality to locate specific content.

Instructions

Search for blogs by title using the mock API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • main.py:23-26 (handler)
    The handler function for the 'search_blogs' tool. It performs an HTTP GET request to the mock API with the query as the 'title' parameter and returns the JSON response.
    def search_blogs(query: str):
        """Search for blogs by title using the mock API."""
        response = httpx.get(mock_api_url, params={'title': query})
        return response.json()
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. It mentions the search action and API source but omits critical details such as whether this is a read-only operation, expected response format, error handling, or any rate limits. The description is minimal and lacks depth for a tool with behavioral implications.

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 a single, efficient sentence with zero waste. It is appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete. It covers the basic action but misses essential context like return values, error cases, and behavioral traits. For a search tool with no structured support, this leaves significant gaps in understanding.

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

Parameters2/5

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

The schema description coverage is 0%, so the description must compensate. It only vaguely implies that the 'query' parameter is for title searches, without detailing syntax, format, or constraints. This adds minimal meaning beyond the bare schema, failing to adequately document the single required parameter.

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 action ('Search for blogs') and the resource ('blogs'), specifying the search criterion ('by title') and the data source ('using the mock API'). It distinguishes from sibling 'get_blogs' by indicating a search rather than a general retrieval, but doesn't explicitly differentiate from 'add_blog' beyond the verb difference.

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?

No explicit guidance is provided on when to use this tool versus alternatives like 'get_blogs' or 'add_blog'. The description implies usage for title-based searches but lacks context on prerequisites, exclusions, or comparative scenarios with siblings.

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/tussanakorn/POC_MCP_Protocol_using_FastMCP'

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