Skip to main content
Glama

Scan a protein sequence

interpro_scan_sequence

Find InterPro domain, family, and site matches for one raw protein sequence that has no UniProt accession. Sequences already in UniParc return precalculated matches at once; any other sequence starts one InterProScan 6 job, which commonly runs about ten minutes, so the usual first result is a jobId to read with interpro_get_scan_result. Repeating a sequence whose job is still running returns the same jobId instead of starting another. Matches are InterProScan records verbatim, 1-based and inclusive, each naming its member database and release.

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_scan_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPositive integer segment size in match records; values above 200 are clamped to 200 with a notice; defaults to 20.
cursorNoOpaque coverage.nextCursor from an earlier interpro_scan_sequence call, to read the next segment of precalculated matches. sequence may be omitted; when given, it must be the same sequence.
sequenceNoOne protein sequence as residue letters, optionally preceded by a single FASTA header line. Case, spaces, and line breaks are ignored; digits, gaps, and stop symbols (*) are rejected. Required unless cursor is given.
waitSecondsNoSeconds to wait for a newly started job to finish before returning its jobId; 0 starts the job and returns at once.

Output Schema

NameRequiredDescriptionDefault
capNoEffective segment size after clamping.
md5NoUppercase hex MD5 of the uppercased residues, the UniParc sequence digest.
errorNoPresent when the call failed. Absent on success.
jobIdNoInterProScan job ID on the interproscan path; results stay retrievable for seven days.
shownNoMatch records in this segment.
lengthNoSequence length in residues.
noticeNoJob, continuation, clamp, or empty-result guidance.
sourceNoWhich path produced the result: precalculated matches from the InterPro Matches API, or an InterProScan 6 job run through the EBI Job Dispatcher.
statusNofinished: matches are present. queued or running: the job is pending; read it later with interpro_get_scan_result. submitted: accepted in this call and not yet polled.
matchesNoWhole match records in this segment when finished, sorted by earliest location start then signature accession; coordinates are 1-based and inclusive. Each record keeps its own source and signatureLibraryRelease.
coverageNoWhere this segment sits in the complete match list; present when finished.
sourceUrlNoUpstream endpoint that supplied this result.
truncatedNoMore segments remain.
totalCountNoMatch records in the complete result.
interproVersionNoInterPro release of a finished InterProScan job.
interproscanVersionNoInterProScan version of a finished job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque coverage.nextCursor from an earlier call with this same sequence, to read the next segment of precalculated matches."New value: +"Opaque coverage.nextCursor from an earlier interpro_scan_sequence call, to read the next segment of precalculated matches. sequence may be omitted; when given, it must be the same sequence."
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 20,
      +  "description": "Positive integer segment size in match records; values above 200 are clamped to 200 with a notice; defaults to 20.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / sequence / description
      Previous value: -"One protein sequence as residue letters, optionally preceded by a single FASTA header line. Case, spaces, and line breaks are ignored; digits, gaps, and stop symbols (*) are rejected."New value: +"One protein sequence as residue letters, optionally preceded by a single FASTA header line. Case, spaces, and line breaks are ignored; digits, gaps, and stop symbols (*) are rejected. Required unless cursor is given."
    • removedInput schema / required
      Removed value: -[
      -  "sequence"
      -]
    • addedOutput schema / properties / cap
      Added value: +{
      +  "description": "Effective segment size after clamping.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `empty_sequence`: The sequence holds no residue letters. `invalid_residue`: The sequence holds a character other than a residue letter or whitespace. `multiple_sequences`: The input holds more than one FASTA record. `invalid_cursor`: The cursor is malformed, belongs to another sequence or result, or the result changed. `scan_not_configured`: The sequence has no precalculated matches and this server cannot submit InterProScan jobs. `rate_limited`: The server already holds its maximum of in-flight InterProScan jobs; nothing was submitted. `scan_rejected`: The Job Dispatcher rejected the submission with HTTP 400. `scan_failed`: The InterProScan job ended with status ERROR or FAILURE. `scan_not_found`: The Job Dispatcher no longer holds the job this sequence was waiting on. `retry_deadline_exceeded`: Lookup, submission, polling, and result reading exhausted the fifty-second call budget. `upstream_shape_invalid`: The Matches API or Job Dispatcher returned a response this server cannot read. `upstream_response_too_large`: An upstream response exceeds 4 MiB. `upstream_rejected`: An upstream service returned an unhandled redirect or client rejection. `upstream_unavailable`: An upstream service had a network or server failure. `upstream_timeout`: An upstream request returned HTTP 408/504 or exceeded its attempt deadline. `upstream_rate_limited`: An upstream service returned HTTP 429. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `empty_sequence`: The sequence is missing without a cursor, or holds no residue letters. `invalid_residue`: The sequence holds a character other than a residue letter or whitespace. `multiple_sequences`: The input holds more than one FASTA record. `invalid_cursor`: The cursor is malformed, belongs to another sequence or result, or the result changed. `scan_not_configured`: The sequence has no precalculated matches and this server cannot submit InterProScan jobs. `rate_limited`: The server already holds its maximum of in-flight InterProScan jobs; nothing was submitted. `scan_rejected`: The Job Dispatcher rejected the submission with HTTP 400. `scan_failed`: The InterProScan job ended with status ERROR or FAILURE. `scan_not_found`: The Job Dispatcher no longer holds the job this sequence was waiting on. `retry_deadline_exceeded`: Lookup, submission, polling, and result reading exhausted the fifty-second call budget. `upstream_shape_invalid`: The Matches API or Job Dispatcher returned a response this server cannot read. `upstream_response_too_large`: An upstream response exceeds 4 MiB. `upstream_rejected`: An upstream service returned an unhandled redirect or client rejection. `upstream_unavailable`: An upstream service had a network or server failure. `upstream_timeout`: An upstream request returned HTTP 408/504 or exceeded its attempt deadline. `upstream_rate_limited`: An upstream service returned HTTP 429. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / notice / description
      Previous value: -"Job, continuation, or empty-result guidance."New value: +"Job, continuation, clamp, or empty-result guidance."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond annotations: ~10 minute runtime, that the first result is usually a jobId, that a re-submitted still-running sequence returns the same jobId, and that matches are verbatim InterProScan records with 1-based inclusive coordinates naming their member database and release. The annotations only carry the safety profile, so this is a real contribution. It is silent on job/result retention and on what happens if waitSeconds expires without completion or the job fails, which matters for a ten-minute async operation.

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?

Five tight sentences, front-loaded with purpose and scope, and no sentence is redundant — job timing, dedup, and output format each carry distinct information. It arrives as one undifferentiated block, which makes the usage-relevant facts slightly harder to scan than they could be.

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?

Everything an agent needs to decide, call, and interpret the initial response is present: when the call is cheap (UniParc hit), when it is slow, what the first return value usually is, and where to go next. Return-value detail is already covered by the output schema, so no gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so limit clamping, cursor opacity, sequence normalization rules, and waitSeconds semantics are already fully documented in the schema. The description adds only the framing that ties cursor to precalculated matches and waitSeconds to the jobId outcome. Baseline 3 applies.

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?

States a specific verb and resource ("Find InterPro domain, family, and site matches") and pins the scope precisely to "one raw protein sequence that has no UniProt accession." That qualifier alone distinguishes it from the accession-based siblings, so an agent can route 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?

Gives the decisive condition: sequences already in UniParc return matches at once, anything else starts an InterProScan job, and the follow-up step is explicit ("read with interpro_get_scan_result"). It implies but never names the accession-based alternative (e.g. interpro_get_protein_domains) for sequences that do have a UniProt ID, so the exclusion is one step short of complete.

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.