Tools

get_element

Point read for a single element by id, with full projection by default.

get_element

Default projection is "all" — you get every field unless you restrict fields.

Summary

Return a single element's full record, including icon_variants (the variant keys valid in composed-icon URLs).

Input

FieldTypeRequiredDefaultDescription
versionstringyesSchema version.
element_idstringyesWhitelisted to [a-zA-Z0-9_-].
localesstring[]noLocales to retain in localized strings.
fieldsstring[] | "all"no"all"Field projection.

Output

{
  "ok": true,
  "data": {
    "version": "ai@2026-04-16-beta",
    "element": {
      "id": "purpose.example",
      "title": [{"locale":"en","value":"Example purpose"}],
      "description": [{"locale":"en","value":"Short description."}],
      "category_id": "purpose",
      "symbol_id": "example-symbol",
      "icon_variants": ["default", "dark", "commercial"],
      "variables": []
    }
  },
  "meta": { "content_hash": "sha256-…", "version": "ai@2026-04-16-beta" }
}

Errors

CodeMeaningFix
invalid_argumentsMissing / malformed arguments.Fix the call.
unknown_versionVersion is not registered.Call list_schema_versions.
element_not_foundNo element with that id.Use list_elements to enumerate.

Example

curl -s https://api.dtpr.io/mcp \
  -H 'content-type: application/json' \
  --data '{
    "jsonrpc":"2.0","id":1,
    "method":"tools/call",
    "params":{
      "name":"get_element",
      "arguments":{
        "version":"ai@2026-04-16-beta",
        "element_id":"purpose.example"
      }
    }
  }'

See also

Copyright © 2026