Skip to main content
Glama
cliwant

mcp-sam-gov

by cliwant

sam_attachment_url

Build a public download URL for any SAM.gov attachment resource ID, enabling direct file retrieval via signed S3 URL.

Instructions

Build the public download URL for an attachment resourceId. The URL returns a 303 redirect to a signed S3 URL — fetch with redirect:'follow' to get the file bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resourceIdYesResource id from sam_get_opportunity → resourceLinks (URL-tail hex)
Behavior4/5

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

Discloses that the URL returns a 303 redirect to a signed S3 URL and advises on fetch behavior. With no annotations, this adds useful behavioral context beyond the bare function.

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?

Two sentences: first states the purpose, second explains the redirect behavior and how to get the file. No extraneous words.

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?

For a single-parameter tool without output schema, the description covers purpose, parameter source, URL behavior, and fetch instructions. Could mention error cases, but the core usage is adequately addressed.

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

Parameters4/5

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

The schema describes 'resourceId' as the resource id; the description adds that it comes from 'sam_get_opportunity resourceLinks (URL-tail hex)', which aids understanding. Since schema coverage is 100%, the extra detail justifies a score above baseline 3.

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?

Clearly states it builds a public download URL for an attachment resourceId. The action is specific and distinct from sibling tools like sam_get_opportunity.

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?

Directly indicates when to use: given a resourceId, construct the download URL. It also provides guidance on how to handle the redirect (redirect:'follow'), though it doesn't explicitly exclude alternative scenarios.

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/cliwant/mcp-sam-gov'

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