Skip to main content
Glama
berntpopp
by berntpopp

Get Protein Sequence

get_protein_sequence
Read-onlyIdempotent

Retrieve the amino-acid sequence for a UniProt protein entry, including canonical and isoform sequences. Control verbosity from minimal metadata to full sequence.

Instructions

Return the amino-acid sequence(s) for an entry: the canonical isoform (length, mass, sequence) plus any additional (non-canonical) isoforms. Pass a canonical accession for all isoforms, or an isoform accession (e.g. P05067-2) to get THAT isoform's specific sequence and mass. response_mode controls verbosity: minimal=metadata only; compact (default)=length/mass + a first/last-30-residue sequence_preview (sequence_truncated:true) — cheap for large proteins; standard/full return the complete sequence string. Set canonical_only=true to return only the canonical isoform (skip the additional-isoform list). Signature: get_protein_sequence(accession, response_mode=, canonical_only=).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accessionYesUniProtKB accession, e.g. P05067 (isoforms like P05067-2 accepted).
response_modeNoVerbosity: minimal | compact | standard | full (default compact).compact
canonical_onlyNoReturn only the canonical isoform (omit the additional-isoform list).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNo
_metaNo
error_codeNo
messageNo
retryableNo
recovery_actionNo
fieldNo
allowed_valuesNo
hintNo
accessionNo
canonicalNo
isoform_countNo
isoformsNo
requested_isoformNo
Behavior5/5

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

Description adds valuable context beyond annotations: explains that compact mode returns a preview to limit payload, details the effect of canonical_only, and confirms read-only behavior. No contradiction with annotations (readOnlyHint, idempotentHint).

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?

Single paragraph with clear, information-dense sentences. Front-loaded with main purpose. Could benefit from minor structural improvements like bullet points but is sufficiently concise.

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 annotations, output schema, and schema coverage, the description adequately covers input behavior, response_mode variations, and canonical_only. No missing elements for effective use.

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?

Schema covers all 3 parameters (100% coverage), and description enriches with examples (e.g., P05067-2 for isoform) and usage tips (e.g., 'cheap for large proteins' for compact mode). Exceeds 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 returns amino-acid sequences for an entry, specifying canonical and additional isoforms. Distinguishes from sibling tools like get_protein, get_protein_features, etc., which focus on other aspects.

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?

Provides explicit guidance on when to use canonical vs. isoform accessions and how response_mode affects output (e.g., compact mode for large proteins). Lacks explicit comparison to alternative tools but context is strong.

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/berntpopp/uniprot-link'

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