Skip to main content
Glama

build_chai_restraints

Read-onlyIdempotent

Builds and pre-flight validates a Chai-1 .restraints CSV against a FASTA, mapping entity names to chain IDs and verifying residue positions and wild-type letters to reject specs that would be dropped.

Instructions

Build and pre-flight validate a Chai-1 .restraints CSV against a FASTA.

Maps FASTA entity names to sequential chain IDs (A, B, ...) with an explicit warning, verifies 1-based residue positions and exact wild-type residue letters, and refuses specs that chai-lab would silently drop.

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": {
      "fasta_text": "<fasta_text>",
      "restraints": "<restraints>"
    },
    "name": "build_chai_restraints"
  }
}

Input Schema

NameRequiredDescriptionDefault
fasta_textYes
restraintsYes

Output Schema

NameRequiredDescriptionDefault
dataNo
noteNo
foundYes
sourcesNo
warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuine behavioral detail beyond that: entity names are mapped to sequential chain IDs with a warning, residue positions are verified as 1-based with exact wild-type letters, and invalid specs are refused rather than emitted.

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?

Three tight sentences with no filler, front-loading the build-and-validate purpose before the mechanics. The line breaks are cosmetic but do not obscure meaning; every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the annotations cover safety. Still, for a domain-specific CSV generator with two required parameters and no schema coverage, the description leaves the restraint object shape and the conversion/validation failure modes underspecified.

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 0%, so the description carries the full burden. It does explain what each input contributes semantically (FASTA entity names drive chain-ID mapping; restraint specs carry 1-based residue positions and wild-type letters), but it never enumerates the expected keys inside the restraint objects, leaving a real gap.

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?

Pairs a specific verb with a specific resource: build and pre-flight validate a Chai-1 .restraints CSV against a FASTA. The scope is unmistakable, but it never distinguishes itself from siblings like validate_chai_inputs or build_chai_fasta, which share the 'validate' and 'build' verbs.

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?

The phrase 'pre-flight validate' and 'refuses specs that chai-lab would silently drop' imply this runs before a chai-lab job, which is useful context. However, there is no explicit statement of when to use this versus validate_chai_inputs, nor any exclusions or prerequisites.

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