Skip to main content
Glama

Find PDB structures

interpro_find_structures
Read-onlyIdempotent

List the PDB structures that contain a UniProt protein or match an InterPro or member-database entry, a page at a time in PDB ID order. Filter either target by experimentType and maxResolution; a resolution bound excludes nulls, as for NMR and some EM structures. Optionally filter an entry target by taxonId. Set exactly one of proteinAccession or entryAccession. Each structure's chain records follow in chains, joined by pdbId: for a protein, chain positions mapped to UniProt positions; for an entry, its match locations in chain numbering beside author auth_start/auth_end and in UniProt numbering, with protein null on unmapped chains. InterPro nests at most 20 chain records per structure, flagged by chainRecordLimitReached. A row's metadata.accession and a record's chain feed interpro_get_structure_domains as pdbId and chain. Continue page.nextCursor until hasMore is false.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPositive integer page size in structures; values above 50 are clamped to 50 with a notice; defaults to 20. Entry-target rows carry each chain’s sequence, so their pages can run to hundreds of kilobytes.
cursorNoOpaque page.nextCursor with the same target and filters; limit may change.
taxonIdNoPositive NCBI taxonomy identifier of at most 10 digits, for entry targets only.
maxResolutionNoInclusive upper resolution bound in ångströms. Excludes null resolutions.
entryAccessionNoInterPro or member-database entry accession, such as IPR011615 or PF00870, whose matched PDB structures to list; set this or proteinAccession, never both.
experimentTypeNoExperimental method: x-ray, nmr, or em. Omit to include all methods.
sourceDatabaseNoDatabase slug for entryAccession, inferred from standard accession prefixes when omitted; not used with proteinAccession.
proteinAccessionNoCanonical UniProt accession, such as P04637, whose PDB structures to list; set this or entryAccession, never both.

Output Schema

NameRequiredDescriptionDefault
capNoEffective page size after clamping.
pageNoPage coverage and continuation.
errorNoPresent when the call failed. Absent on success.
queryNoApplied canonical target and explicitly supplied filters.
shownNoStructures returned.
chainsNoChain records of this page’s structures, grouped in structures order; not to be confused with the chain IDs of interpro_get_structure_domains structure.chains.
noticeNoInterpretation, continuation, or recovery guidance.
truncatedNoMore structures remain.
sourceUrlsNoOfficial API URLs this call read: the list page, then the target detail when the first page is empty.
structuresNoPDB structures on this page, in upstream PDB ID order.
totalCountNoUpstream total structures for the applied query.
effectiveQueryNoApplied target and filters as JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque page.nextCursor with the unchanged proteinAccession, or entryAccession and sourceDatabase; limit may change."New value: +"Opaque page.nextCursor with the same target and filters; limit may change."
    • addedInput schema / properties / experimentType
      Added value: +{
      +  "description": "Experimental method: x-ray, nmr, or em. Omit to include all methods.",
      +  "enum": [
      +    "x-ray",
      +    "nmr",
      +    "em"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / maxResolution
      Added value: +{
      +  "description": "Inclusive upper resolution bound in ångströms. Excludes null resolutions.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxonId
      Added value: +{
      +  "description": "Positive NCBI taxonomy identifier of at most 10 digits, for entry targets only.",
      +  "pattern": "^[1-9][0-9]{0,9}$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / effectiveQuery / description
      Previous value: -"Applied target as JSON."New value: +"Applied target and filters as JSON."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_target`: The call sets neither or both of proteinAccession and entryAccession, or sourceDatabase beside proteinAccession. `protein_not_found`: The first page is empty and the canonical protein detail returns HTTP 204 or 404. `entry_not_found`: The accession is a set accession, InterPro rejects it for its database with HTTP 404, or the first page is empty and the entry detail returns HTTP 204 or 404. `entry_withdrawn`: InterPro reports the protein, the entry, or its structure list withdrawn with HTTP 410. `database_mismatch`: Explicit sourceDatabase conflicts with entryAccession routing. `accession_source_unknown`: entryAccession matches no standard prefix and no sourceDatabase was supplied. `invalid_cursor`: Cursor decoding or scope fails, or upstream rejects continuation. `retry_deadline_exceeded`: The shared fifty-second budget expires across the list page and the target detail. `upstream_shape_invalid`: Upstream JSON, structure, or continuation is incompatible. `upstream_response_too_large`: An upstream response exceeds 4 MiB. `upstream_rejected`: InterPro returns an unhandled redirect or client rejection. `upstream_unavailable`: InterPro has a network or server failure; HTTP 501 is not retryable. `upstream_timeout`: InterPro returns HTTP 408/504 or an attempt exceeds its deadline. `upstream_rate_limited`: InterPro returns HTTP 429. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_target`: The call sets neither or both of proteinAccession and entryAccession, or sourceDatabase or taxonId beside proteinAccession. `protein_not_found`: The first page is empty and the canonical protein detail returns HTTP 204 or 404. `entry_not_found`: The accession is a set accession, InterPro rejects it for its database with HTTP 404, or the first page is empty and the entry detail returns HTTP 204 or 404. `entry_withdrawn`: InterPro reports the protein, the entry, or its structure list withdrawn with HTTP 410. `database_mismatch`: Explicit sourceDatabase conflicts with entryAccession routing. `accession_source_unknown`: entryAccession matches no standard prefix and no sourceDatabase was supplied. `invalid_cursor`: Cursor decoding or scope fails, or upstream rejects continuation. `retry_deadline_exceeded`: The shared fifty-second budget expires across the list page and the target detail. `upstream_shape_invalid`: Upstream JSON, structure, or continuation is incompatible. `upstream_response_too_large`: An upstream response exceeds 4 MiB. `upstream_rejected`: InterPro returns an unhandled redirect or client rejection. `upstream_unavailable`: InterPro has a network or server failure; HTTP 501 is not retryable. `upstream_timeout`: InterPro returns HTTP 408/504 or an attempt exceeds its deadline. `upstream_rate_limited`: InterPro returns HTTP 429. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / page / properties / total / description
      Previous value: -"Upstream total structures for the target; absent on an empty continuation page, which reports none."New value: +"Upstream total structures for the target and filters; absent on an empty continuation page."
    • changedOutput schema / properties / query / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Protein target.",
      -    "properties": {
      -      "proteinAccession": {
      -        "description": "Uppercase canonical UniProt accession.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "proteinAccession"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Entry target.",
      -    "properties": {
      -      "entryAccession": {
      -        "description": "Canonical entry accession.",
      -        "type": "string"
      -      },
      -      "sourceDatabase": {
      -        "description": "InterPro entry API database slug.",
      -        "enum": [
      -          "interpro",
      -          "pfam",
      -          "prosite",
      -          "profile",
      -          "smart",
      -          "cdd",
      -          "panther",
      -          "cathgene3d",
      -          "ssf",
      -          "ncbifam",
      -          "hamap",
      -          "prints",
      -          "pirsf",
      -          "sfld",
      -          "antifam"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "entryAccession",
      -      "sourceDatabase"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Protein target.",
      +    "properties": {
      +      "experimentType": {
      +        "description": "Experimental method: x-ray, nmr, or em. Omit to include all methods.",
      +        "enum": [
      +          "x-ray",
      +          "nmr",
      +          "em"
      +        ],
      +        "type": "string"
      +      },
      +      "maxResolution": {
      +        "description": "Inclusive upper resolution bound in ångströms. Excludes null resolutions.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "proteinAccession": {
      +        "description": "Uppercase canonical UniProt accession.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "proteinAccession"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Entry target.",
      +    "properties": {
      +      "entryAccession": {
      +        "description": "Canonical entry accession.",
      +        "type": "string"
      +      },
      +      "experimentType": {
      +        "description": "Experimental method: x-ray, nmr, or em. Omit to include all methods.",
      +        "enum": [
      +          "x-ray",
      +          "nmr",
      +          "em"
      +        ],
      +        "type": "string"
      +      },
      +      "maxResolution": {
      +        "description": "Inclusive upper resolution bound in ångströms. Excludes null resolutions.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "sourceDatabase": {
      +        "description": "InterPro entry API database slug.",
      +        "enum": [
      +          "interpro",
      +          "pfam",
      +          "prosite",
      +          "profile",
      +          "smart",
      +          "cdd",
      +          "panther",
      +          "cathgene3d",
      +          "ssf",
      +          "ncbifam",
      +          "hamap",
      +          "prints",
      +          "pirsf",
      +          "sfld",
      +          "antifam"
      +        ],
      +        "type": "string"
      +      },
      +      "taxonId": {
      +        "description": "Positive NCBI taxonomy identifier of at most 10 digits, for entry targets only.",
      +        "pattern": "^[1-9][0-9]{0,9}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "entryAccession",
      +      "sourceDatabase"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / query / description
      Previous value: -"Applied canonical target."New value: +"Applied canonical target and explicitly supplied filters."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Upstream total structures for the target."New value: +"Upstream total structures for the applied query."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it read-only, idempotent and open-world; the description adds substantial non-obvious behavior beyond that: resolution bounds exclude nulls (affecting NMR and some EM), cursor semantics, InterPro's 20-chain-record cap with a chainRecordLimitReached flag, and that entry-target rows carry sequences so pages can run to hundreds of kilobytes. It also discloses the null-protein case on unmapped chains.

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-loads purpose and the accession constraint before the chain-record and pagination details, and nearly every sentence carries load-bearing information. It is a dense, run-on single paragraph, though, and the chain-join mechanics sentence takes effort to parse.

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?

For an eight-parameter, dual-target, paginated tool with an output schema, the description covers target selection, filter interactions, pagination termination, the chain-join key, and known truncation limits. Nothing an agent needs to call it correctly or interpret the result is missing.

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 is 3, but the description adds cross-parameter meaning the schema only partially conveys — the mutual exclusivity of proteinAccession and entryAccession is framed as a hard rule ("Set exactly one"), and taxonId is explicitly limited to entry targets. It does not add much syntax detail beyond the schema, which is why it lands at 4 rather than 5.

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?

Opens with a specific verb and resource ("List the PDB structures") and immediately scopes it to two distinct targets: a UniProt protein or an InterPro/member-database entry. The ordering ("PDB ID order") and pagination model are stated up front, so an agent knows exactly what this returns without consulting the 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?

Gives concrete operating instructions: "Set exactly one of proteinAccession or entryAccession", how to filter by experimentType/maxResolution/taxonId, and to "Continue page.nextCursor until hasMore is false". It also routes the agent forward ("feed interpro_get_structure_domains as pdbId and chain"), but never states when to prefer a sibling such as interpro_find_proteins_by_domain or interpro_find_architectures instead, so it stops short of a full when/when-not comparison.

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.