Skip to main content
Glama
rcsb

io.github.rcsb/rcsb-mcp

Official
by rcsb

rcsb_render_report

Read-onlyIdempotent

Turn structure-search results into a self-contained HTML report with evidence, API call history, and data usage summary. Call after completing searches to present findings clearly.

Instructions

Render a structure-search report as a styled, self-contained HTML page.

Call this LAST, after the searches and rcsb_get_* calls that produce the values shown in the report. Supply facts only: the page is rendered from a fixed server-side template, so do not write HTML yourself and do not rewrite what this tool returns.

Key fields of report: title: page heading describing the search. api_calls: one per Search/Data/Sequence-Coordinates call, using the editor object the tool returned VERBATIM. Resolver and discovery tools have no editor link — pass label and tool_name only. result_type: what your ids ARE — "entry" for PDB entry ids (4HHB, the default) or "ligand" for chemical component ids (ATP). It must match the ids you send: a mismatch resolves nothing, and every derived value comes back empty. results: the identifiers you are reporting, in the order you want them ranked, each {"id": ..., "evidence": {...}}. Evidence has two fields: grounds (the tool-returned value the match rests on) and optional interpretation (your own reading of it). Splitting them is what stops your inference from being read as something the archive returned. data_usage: ordered narrative of how each call shaped the final set; each item's body is plain prose — your own account of how you worked.

Returns: RenderReportResult with EITHER a url or html (never both), plus template_version. Prefer url — it is a self-contained link that renders the report on demand; deliver it to the user as-is. html is only returned as a fallback; write it to a .html file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoShort link to the rendered report. When set, THIS is the deliverable — give it to the user as a clickable link. Do not open it, fetch it, or reproduce anything from it.
htmlNoFallback rendering, returned ONLY when a link could not be built. Write it verbatim to a `.html` file and deliver that.
template_versionYesVersion of the report template used.
Behavior5/5

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

The description discloses that rendering uses a fixed server-side template, that the response contains either a url or html never both, and that html is only a fallback to be written to a file. It also warns that a result_type/id mismatch resolves nothing and returns empty derived values, which goes beyond the annotations' readOnlyHint and idempotentHint.

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 long but well-structured into purpose, invocation order, key fields, and return contract. Every section earns its place, and the most important operational guidance (call last, supply facts only, don't write HTML) is front-loaded.

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?

Given the tool's complexity and the rich nested schema, the description covers invocation order, input field semantics, failure modes, and the return contract (url vs html plus template_version). The output schema and sibling tool list supply the remaining structural context, making the description fully sufficient for correct invocation.

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?

Even though the top-level schema has 0% description coverage by the given signal, the description thoroughly explains the report fields: title, api_calls with verbatim editor objects, result_type semantics and matching constraints, results with evidence/grounds/interpretation, and data_usage. It adds critical non-obvious constraints such as passing the editor object VERBATIM and the failure mode for mismatched result_type.

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 opening sentence, 'Render a structure-search report as a styled, self-contained HTML page,' names the specific verb, resource, and output format. It is clearly differentiated from the sibling search/get tools by being the final rendering step rather than a data retrieval or search operation.

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?

The description explicitly instructs 'Call this LAST, after the searches and rcsb_get_* calls that produce the values shown in the report,' giving clear ordering guidance. It also tells the agent not to write HTML, not to rewrite returned content, and explains how to handle resolver/discovery tools without editor links.

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/rcsb/rcsb-mcp'

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