Skip to main content
Glama
cliwant

mcp-sam-gov

by cliwant

sam_attachment_url

Read-only

Creates a public download URL for an attachment using its resource ID, returning a 303 redirect to a signed S3 URL for file retrieval.

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?

Annotations already declare readOnlyHint and openWorldHint. The description adds the critical behavior of returning a 303 redirect to a signed S3 URL, and instructs how to follow it. No contradictions.

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 concise sentences front-load the purpose and immediately provide essential behavioral guidance. No unnecessary words.

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 low complexity (one parameter, no output schema), the description fully addresses purpose, behavior, and usage instruction. It explains the redirect and gives a practical fetch hint.

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 covers 100% of parameters with a description for resourceId. The tool description does not add any extra meaning beyond the schema's explanation of where the resource ID comes from.

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 the verb 'Build' and the resource 'public download URL for an attachment resourceId'. It distinguishes from sibling tools like sam_fetch_attachment_text and sam_get_opportunity which handle content retrieval or data display.

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 explains the redirect behavior and advises 'redirect:'follow' to get file bytes', providing clear usage context. It does not explicitly state when not to use or name alternatives, but the purpose is self-contained.

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