Skip to main content
Glama

AIsa Web Search & Research

Model-grounded web search (OpenAI).

post_openai_websearch_search
Read-onlyIdempotent

Ask a question and get an answer that an OpenAI model wrote after searching the live web. Send a Responses request — an input string (or message array) — and the endpoint injects a fixed, server-pinned model and the web_search tool for you; the model, tool and per-request search cap are server-controlled to keep cost bounded. The reply is a standard OpenAI Responses object: output[] contains web_search_call items (each a search that ran) and a message item with the answer text and URL citations, and the billed search count equals the number of web_search_call items. Billing is pay-as-you-go at exact cost: web_search_calls × $0.01 plus the model's own token cost (fresh input = input_tokens − cached), with no markup. Use this when you want a written, cited answer grounded in current web content from an OpenAI model — for the Anthropic-model equivalent see post_anthropic_websearch_search, and for raw ranked links with extracted page text use post_tavily_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesYour question or instruction, same format as the OpenAI Responses API `input`. A message array is also accepted.
instructionsNoOptional high-level instructions to steer the answer's tone or format.
max_output_tokensNoOptional cap on the number of tokens generated in the answer.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the description is not required to repeat those. Instead it discloses crucial behavioral details: server-pinned model and tool, per-request search cap, output structure with web_search_call and message items, and exact billing formula. This is rich, non-redundant behavioral context that materially affects whether an agent calls the tool and how it interprets results.

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?

Although the description is long, every sentence earns its place. The core purpose and usage guidance are front-loaded, followed by billing and output details. There is no fluff or redundancy; each clause adds value, from the server-controlled cap to the cost formula. It is well-structured and information-dense without being bloated.

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

Completeness5/5

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

The tool is moderately complex (search + model + billing + output structure), but the description covers all critical aspects: how the search is performed, what the output looks like, how billing works, and how it differs from alternatives. An output schema exists, so the description does not need to enumerate every field, but it explains the high-level output shape. For an agent to call this correctly and interpret the response, nothing essential is missing.

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 coverage is 100%, so the description does not need to re-explain each parameter. It adds a minor clarification that `input` can be a message array and that the format matches the OpenAI Responses API, which is useful but not transformative. The baseline of 3 is appropriate; the schema already documents the parameters fully, and the description offers only a small amount of extra context.

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 opens with a clear, specific verb and resource: 'Ask a question and get an answer that an OpenAI model wrote after searching the live web.' It explicitly names two sibling tools and how they differ, so an agent can immediately distinguish it from post_anthropic_websearch_search (Anthropic model) and post_tavily_search (raw links). This exceeds a mere statement of function by providing differentiation.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use rule: 'Use this when you want a written, cited answer grounded in current web content from an OpenAI model.' It also names alternatives and directs the agent to them for other use cases. This is exemplary guidance that removes any guesswork about tool selection.

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.

Resources