Skip to main content
Glama

cod_crystals

Search experimental crystal structures in the COD by COD ID, formula, elements, or text; retrieve formula, space group, unit cell, and citation metadata.

Instructions

Search experimental crystal structures in the COD.

Provide exactly one filter: cod_id (e.g. "1526463"), formula ("Fe2 O3" or "Fe2O3"), elements (comma/space list, e.g. "Fe,O") or text. Returns COD id, formula, chemical/mineral name, title, authors, journal/year, DOI, space group and unit cell. COD is experimental data (complements Materials Project's DFT data); a mirror may lag the main site. Only upstream fields are returned; missing fields omitted, nothing is inferred or completed. Failures return an error dict.

Args: cod_id: Exact COD entry id. formula: COD formula (spaces between element groups). elements: Comma/space separated elements. text: Free-text search (title/author/journal). limit: Entries to return, 1-50 (default 10).

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": "cod_crystals"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
limitNo
cod_idNo
formulaNo
elementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does well: it discloses that a mirror may lag the main site, that only upstream fields are returned with missing fields omitted and nothing inferred or completed, and that failures return an error dict. It does not cover pagination/ordering behavior or whether the single-filter rule is enforced as an error, but the data-provenance caveats are genuinely useful context an agent could not infer.

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

Conciseness5/5

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

Front-loaded with purpose and the one-filter constraint before the return shape and provenance caveats, then a compact Args block keyed to parameter names. Every sentence carries information the agent would otherwise have to guess; nothing is a restatement of the tool name.

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?

No output schema exists, yet the description enumerates the returned fields (COD id, formula, chemical/mineral name, title, authors, journal/year, DOI, space group, unit cell) and states the failure shape. Combined with full parameter documentation and the mirror-lag caveat, an agent has everything needed to call and interpret this tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it does: all five parameters are documented with format examples (cod_id "1526463", formula "Fe2 O3" or "Fe2O3", elements "Fe,O") and limit is bounded to 1-50 with a default of 10. The "exactly one filter" rule is semantics not present anywhere in the schema.

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?

The description opens with a specific verb and resource ("Search experimental crystal structures in the COD") and the filter list further scopes it to literature-deposited crystal entries. It notes COD is experimental data that complements Materials Project's DFT data, which conceptually separates it from computed-structure sources, but no sibling tool in the provided list is named as an alternative or contrast.

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?

"Provide exactly one filter" is an explicit, actionable usage constraint that tells the agent how to compose the call, and the four filter options are enumerated with examples. What's missing is any exclusion or fallback guidance (e.g. what to do when a COD id is unknown, or when to prefer a compound/generic chemistry sibling).

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