REFERENCE DATA FOR AGENTS

Look up application media types

A document-processing agent checks an application media subtype against the registry before choosing how to handle a file.

When this fits

Application media-type registry only; not image, audio or other media registries. No file-content sniffing or safety classification. No declared source validity dates; include_inactive=true includes unknown-validity values, which must retain active:null and warnings.

Source, scope and usage terms

Check the current release

Read the live schema, readiness, and MCP tools/list before using iana-application-media-types. These instructions describe approved scope, not a promise that a particular deployment is available. Check pricing and attribution. A promotional window may permit a free request; do not infer permission from payments_enabled: false alone.

Make one bounded request

These commands send no wallet signature or payment proof and do not retry. A 402 response means stop and inspect the quote; it does not authorize spending. Check availability and terms first.

curl --fail-with-body --get 'https://api.agentmasterdata.com/v1/reference-data/iana-application-media-types' \
  --data-urlencode 'codes=json' \
  --data-urlencode 'include_inactive=true' \
  --data-urlencode 'limit=1'

The equivalent MCP call uses the same arguments:

curl --fail-with-body 'https://api.agentmasterdata.com/mcp' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_reference_data' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_reference_data","arguments":{"domain":"iana-application-media-types","codes":["json"],"include_inactive":true,"limit":1}}}'

Machine-readable arguments · Input schema

Accept only supported results

Check ok, the returned domain and exact requested code. Keep the result envelope’s meta.data_version, source identifiers, licences, public-use terms and warnings. For MCP, inspect structuredContent and isError. Do not substitute a different domain or treat an empty result as a match.

include_inactive: true permits unknown-validity values. Preserve active: null and reference_value_validity_unknown; they do not establish that the value is currently active. Use include_inactive: false when the task requires known-active values.

Handle an unavailable service

Stop on a challenge page, unavailable domain, unresolved terms, or payment refusal. For 429, respect Retry-After within a bounded caller policy. The website records no execution or paid-service proof. Read the complete connection guide.