Skip to main content
Glama

annotate_function

Fetch Gene Ontology molecular function, biological process, and cellular component annotations for a gene or protein by symbol, alias, or UniProt accession, with evidence codes.

Instructions

Fetch Gene Ontology functional annotations (MF, BP, CC) for a gene or protein.

Args: query: Gene symbol (e.g. 'TP53'), alias, or UniProt accession (e.g. 'P04637'). taxon_id: NCBI Taxonomy ID (default: 9606 for human). aspect: Optional filter: 'molecular_function', 'biological_process', or 'cellular_component'. limit: Maximum number of annotations per aspect (default: 25).

Returns: JSON string containing the functional profile structured into MF, BP, and CC with evidence codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
aspectNo
taxon_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. 'Fetch' implies read-only and it discloses the return shape (MF/BP/CC JSON with evidence codes), which is useful, but it says nothing about rate limits, authentication, network/API dependencies, or behavior when the gene is unknown.

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?

Front-loaded purpose sentence followed by compact Args/Returns blocks; every line adds information. Slightly bulky for a simple fetch, but no filler.

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?

An output schema exists, so the Returns section is redundant but harmless. All four parameters are explained despite 0% schema coverage, and the aspect filter values are spelled out. The only real gap is the absence of usage routing against the many sibling finder/lookup tools.

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 description coverage is 0%, so the description must compensate, and it largely does: it explains query accepts a symbol, alias, or UniProt accession with concrete examples, gives the default for taxon_id (9606), enumerates the three valid aspect values, and defines limit as 'maximum annotations per aspect'. This exceeds what the bare 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?

States a specific verb and resource ('Fetch Gene Ontology functional annotations... for a gene or protein') and scopes it to MF/BP/CC, which separates it from siblings like get_go_term (term metadata) and get_pathways. It does not name any sibling explicitly, so an agent must infer the boundary rather than being routed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the arguments (aspect filter, taxon_id, limit) rather than stated: there is no 'use this when you want X, use get_go_term when you want Y' guidance. No exclusions, no prerequisites, no mention of what to do for non-model organisms or ambiguous symbols.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.