Skip to main content
Glama
deXterbed

Ollama Web Search

by deXterbed

web_search

Search the web using Ollama's API to retrieve relevant web pages with titles, URLs, and content. Specify the query and optionally limit results.

Instructions

Search the web via Ollama's hosted search API.

Args: query: The search query. max_results: Maximum results to return (default 5, max 10).

Returns: A dict with a "results" list, each item having title, url and content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/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. It describes the return format as a dict with 'results' list containing title, url, and content. It does not mention any destructive behavior, rate limits, or authentication, but for a search tool, this is reasonable and adds value beyond the schema.

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 concise, structured as a docstring with Args and Returns sections. Every sentence provides necessary information without redundancy.

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?

The tool has 2 parameters, no nested objects, and an output schema exists. The description explains the return format. It could mention error handling or pagination, but for a straightforward search, it is sufficiently complete.

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 input schema has 0% description coverage, so the description fully compensates by explaining 'query' as the search query and 'max_results' with default and maximum. This adds meaning beyond the schema's type definitions.

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

Purpose5/5

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

The description clearly states 'Search the web via Ollama's hosted search API,' specifying the verb 'search' and the resource 'web.' It distinguishes from the sibling tool 'web_fetch', which is likely for fetching specific URLs, so purpose is clear and specific.

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?

The description implies that web_search is for general search queries, contrasting with the sibling 'web_fetch'. It specifies default and max values for max_results, but does not explicitly state when to use this tool over alternatives or provide exclusion criteria.

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/deXterbed/ollama-web-search'

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