Skip to main content
Glama

Compute Topological Fingerprint (TDA)

compute_topology_fingerprint
Read-onlyIdempotent

Computes a rotation-invariant Cα topology fingerprint for an AlphaFold model from a UniProt accession, using persistent homology when GUDHI is available and a coarse geometry fallback otherwise.

Instructions

Compute an exploratory, rotation-invariant Cα summary vector for an AlphaFold model.

Fetches the AlphaFold model for uniprot_id and derives an exploratory 64-slot feature vector from its Cα coordinates. With GUDHI installed, H0 and H1 are computed on the 15-Å Vietoris-Rips 2-skeleton and the vector holds 16 summary statistics of their finite bar lifetimes (eight each); the other 48 slots are zero. H2 is NOT computed. On this GUDHI path, models longer than 500 residues are reduced to 500 evenly spaced Cα atoms first, so their Betti numbers and statistics describe that subsample (subsampled is then true). Without GUDHI the fallback uses every residue, with no subsampling: the vector holds eight distance and contact statistics, one of them a 4-Å contact-graph component count, and no persistent homology is computed. Betti numbers describe this chosen filtration, not protein domains, β-barrels, drug cavities, molecular function, or an experimental structure.

Returns the fingerprint vector and its slot layout, the Betti numbers, the residue counts, and which method ran. Full persistent homology needs the optional [tda] extra (gudhi); without it a coarse fallback runs that does NOT compute persistent homology, and the result flags this. Returns a no-structure result when AlphaFold DB has no model for the accession. This is a coarse, geometry-only summary — not a substitute for sequence alignment, RMSD, or functional-homology assessment.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "compute_topology_fingerprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.2
    • changedInput schema / properties / params / properties / uniprot_id / description
      Previous value: -"UniProt accession, e.g. 'P38398' (BRCA1)."New value: +"UniProt accession (6/10 characters), optionally with isoform suffix (e.g. P04637-2)."
    • changedInput schema / properties / params / properties / uniprot_id / pattern
      Previous value: -"^[A-Z][0-9][A-Z0-9]{3}[0-9](?:[A-Z][0-9][A-Z0-9]{3}[0-9])?$"New value: +"^(?:[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9](?:[A-Z][A-Z0-9]{2}[0-9]){1,2})(?:-[1-9][0-9]*)?$"
  2. First observedv1.1.8

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description adds substantial behavior beyond that: H2 is explicitly NOT computed, models over 500 residues are subsampled to 500 Cα atoms on the GUDHI path (flagged via `subsampled`), the non-GUDHI fallback computes no persistent homology, and a no-structure result is returned when AlphaFold DB lacks a model. It also scopes interpretation ('Betti numbers describe this chosen filtration, not protein domains').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core definition, but the GUDHI-vs-fallback story is told twice (once in the H0/H1 paragraph, again in 'Full persistent homology needs the optional [tda] extra ... a coarse fallback runs that does NOT compute persistent homology'), and the slot-count arithmetic is spelled out at more length than needed. Dense and informative, but a third could be cut without losing agent-relevant content.

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 an output schema exists, the description need not explain return shapes, yet it still names the returned artifacts (vector, slot layout, Betti numbers, residue counts, method flag, subsampled flag). Combined with annotations covering the safety profile, an agent has everything needed to invoke this correctly and interpret the result.

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?

Only one parameter, and the description ties it to concrete behavior — the accession drives an AlphaFold DB fetch and can yield a no-structure result. The schema already documents format and isoform suffix, so the description correctly does not repeat syntax details; it adds meaning rather than restating the schema.

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?

Names a specific verb and resource ('Compute an exploratory, rotation-invariant Cα summary vector for an AlphaFold model') and specifies the exact mechanism: fetch model by uniprot_id, derive 64-slot vector from Cα coordinates. It even enumerates which slots are populated under each code path, so an agent can tell this apart from geometry tools like score_binding_pocket_geometry or compare_proteins_topologically without opening a schema.

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 strong negative guidance — 'not a substitute for sequence alignment, RMSD, or functional-homology assessment' — and explains the [tda] extra as the condition for getting real persistent homology. It does not name a sibling tool to use instead when an agent wants a comparative rather than single-structure analysis, so the alternative-routing half of the guidance is missing.

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