Skip to main content
Glama

Map structure domains

interpro_get_structure_domains
Read-onlyIdempotent

Retrieve InterPro and member-signature matches on one PDB entry's protein chains. Each chain record keeps match locations in chain numbering (1-based start/end beside author auth_start/auth_end, which can be null), in UniProt numbering, and the chain-to-UniProt residue map, with discontinuous fragments preserved; the UniProt protein is null for unmapped chains. InterPro nests at most 20 chain records per match; set chain to read one chain completely. Each segment holds up to limit whole matches; the first carries structure metadata listing the protein chains. If InterPro lists mapped proteins but zero entries and matches, look for proteinMappings and use interpro_get_protein_domains for the UniProt annotations. Continue coverage.nextCursor until hasMore is false.

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": {
      "pdbId": "<pdbId>"
    },
    "name": "interpro_get_structure_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoProtein chain to map, case-sensitive and one of structure.chains, such as A; omit for every chain.
limitNoPositive integer number of whole matches per segment, each with all its chain records; values above 60 are clamped to 60 with a notice; defaults to 10.
pdbIdYesFour-character PDB ID such as 1tsr; case-insensitive. Extended pdb_0000… IDs are not supported.
cursorNoOpaque coverage.nextCursor with unchanged pdbId and chain; limit may change.

Output Schema

NameRequiredDescriptionDefault
capNoEffective limit after clamping: the most whole matches one segment holds.
urlNoCanonical structure website URL.
chainNoChain the map is restricted to, when one was set.
errorNoPresent when the call failed. Absent on success.
pdbIdNoLowercase PDB ID.
shownNoWhole matches in this segment.
noticeNoInterpretation, continuation, or recovery guidance.
matchesNoWhole matches in this segment, in upstream order; never split across segments.
coverageNoWhere this segment sits in the structure map.
structureNoComplete upstream structure metadata on the first segment, the call without cursor; continuation segments omit it.
truncatedNoMore segments remain.
sourceUrlsNoOfficial API URLs this call read.
structuresNoEvery chain record of this segment’s matches, grouped by match in matches order.
totalCountNoUpstream total matching records.
effectiveQueryNoApplied pdbId and chain as JSON.
proteinMappingsNoChain mappings from one recovery page when InterPro supplies no structure matches.
proteinMappingPageNoCoverage of the optional UniProt recovery page, separate from match coverage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / proteinMappingPage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Coverage of the optional UniProt recovery page, separate from match coverage.",
      +  "properties": {
      +    "nextUrl": {
      +      "description": "Official InterPro API URL for the next protein page.",
      +      "type": "string"
      +    },
      +    "returnedMappings": {
      +      "description": "Chain mapping rows returned in proteinMappings.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "returnedProteins": {
      +      "description": "Proteins on this recovery page.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "totalProteins": {
      +      "description": "Upstream total distinct proteins.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "totalProteins",
      +    "returnedProteins",
      +    "returnedMappings"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / proteinMappings
      Added value: +{
      +  "description": "Chain mappings from one recovery page when InterPro supplies no structure matches.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One chain-to-UniProt residue mapping from the recovery page.",
      +    "properties": {
      +      "chain": {
      +        "description": "Case-sensitive PDB chain ID, one to four letters or digits.",
      +        "maxLength": 4,
      +        "pattern": "^[A-Za-z0-9]{1,4}$",
      +        "type": "string"
      +      },
      +      "proteinAccession": {
      +        "description": "Mapped UniProt accession.",
      +        "type": "string"
      +      },
      +      "structure_protein_locations": {
      +        "description": "Inclusive fragments with 1-based chain start/end and UniProt protein_start/protein_end.",
      +        "items": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/__schema0",
      +            "description": "An unmodified JSON value."
      +          },
      +          "description": "Complete upstream match location.",
      +          "properties": {
      +            "fragments": {
      +              "description": "Nonempty sequence fragments.",
      +              "items": {
      +                "additionalProperties": {
      +                  "$ref": "#/$defs/__schema0",
      +                  "description": "An unmodified JSON value."
      +                },
      +                "description": "Complete continuous or discontinuous sequence fragment.",
      +                "properties": {
      +                  "dc-status": {
      +                    "description": "Discontinuity status.",
      +                    "type": "string"
      +                  },
      +                  "end": {
      +                    "description": "Inclusive 1-based end residue.",
      +                    "exclusiveMinimum": 0,
      +                    "maximum": 9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "start": {
      +                    "description": "Inclusive 1-based start residue.",
      +                    "exclusiveMinimum": 0,
      +                    "maximum": 9007199254740991,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "start",
      +                  "end"
      +                ],
      +                "type": "object"
      +              },
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "model": {
      +              "description": "Source model.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "representative": {
      +              "description": "Representative match flag.",
      +              "type": [
      +                "boolean",
      +                "null"
      +              ]
      +            },
      +            "score": {
      +              "description": "Upstream match score.",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "fragments"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "chain",
      +      "structure_protein_locations",
      +      "proteinAccession"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque coverage.nextCursor with unchanged pdbId and chain."New value: +"Opaque coverage.nextCursor with unchanged pdbId and chain; limit may change."
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 10,
      +  "description": "Positive integer number of whole matches per segment, each with all its chain records; values above 60 are clamped to 60 with a notice; defaults to 10.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / cap / description
      Previous value: -"Most matches one call reads; a segment can stop sooner at the response byte budget."New value: +"Effective limit after clamping: the most whole matches one segment holds."
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world, so safety is covered. The description adds substantial behavior beyond that: chain-numbering vs author vs UniProt numbering, null auth_start/auth_end, null UniProt protein for unmapped chains, preserved discontinuous fragments, a 20-chain-record nesting cap per match, and per-segment limit semantics with structure metadata on the first segment.

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?

Purpose is front-loaded and every sentence carries operational content, but the prose is dense and semicolon-chained, making the nullability and pagination rules slower to parse than they need to be. No filler sentences are present.

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, yet the description still explains how to interpret the nested result (segment structure, first-segment metadata, null mappings), which is appropriate for this complexity. It does not cover error behavior for an unknown or unsupported PDB ID beyond the schema's pattern, a minor gap.

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 coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: chain exists because a match nests at most 20 chain records, limit counts whole matches (each with all its chain records) per segment, and cursor must be reused with unchanged pdbId and chain. These are semantic constraints, not restatements.

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 first sentence states a specific verb and resource with scope: 'Retrieve InterPro and member-signature matches on one PDB entry's protein chains.' It also distinguishes itself from interpro_get_protein_domains by noting that sibling serves UniProt annotations when this tool yields zero entries, so an agent can choose between them.

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?

Gives an explicit routing rule for the sibling: if InterPro lists mapped proteins but zero entries and matches, use interpro_get_protein_domains. It also tells the agent when to set chain (to read one chain completely when a match nests many chain records) and to continue coverage.nextCursor until hasMore is false. It lacks guidance relative to interpro_find_structures or scan tools, so not full marks.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.