Skip to main content
Glama

ae_pipeline_rag

Analyze drug safety by retrieving and summarizing FDA drug label data in one call, preventing LLM response truncation.

Instructions

Advanced RAG pipeline for drug safety analysis. Fetches, extracts, chunks, retrieves and summarizes FDA drug label data in one call to prevent LLM response truncation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
drugNoDrug name to focus the analysis on. Example: 'aspirin', 'ibuprofen'
queryNoNatural language query about drug safety. Example: 'cardiovascular side effects and warnings'
top_kNoNumber of most relevant text chunks to return (1-10)
filtersNoAdditional filters for data retrieval
conditionNoMedical condition context. Example: 'hypertension', 'pain management'
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It lists pipeline steps (fetch, extract, chunk, retrieve, summarize) but does not mention output format, external API calls, rate limits, permissions, or potential side effects. The truncation rationale is vague and unhelpful.

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

Conciseness4/5

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

The description is compact at two sentences. The first sentence delivers the core purpose; the second adds context, though it is slightly awkward. Overall, it is appropriately sized without excessive verbosity.

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?

This is a complex tool with 5 parameters, a nested filters object, no output schema, and no annotations. The description omits essential details such as return value structure, expected latency, and when to prefer this over simpler sibling tools, making the overall picture incomplete.

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% and each parameter has a self-explanatory description, so the baseline of 3 applies. The tool description adds no additional context about parameter interactions, defaults, or precedence beyond what the 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 states a clear purpose: a RAG pipeline that fetches, extracts, chunks, retrieves, and summarizes FDA drug label data, distinguishing itself from sibling tools that focus on individual aspects. However, the phrase 'Advanced RAG pipeline' is technical jargon and 'to prevent LLM response truncation' is ambiguous, slightly reducing clarity.

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 when-to-use or when-not-to-use guidance is given. The phrase 'in one call' implies it replaces multiple separate calls, but no alternatives are named and no exclusion criteria are provided, leaving the agent to infer usage context.

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/Aki894/mcp-openfda'

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