Skip to main content
Glama

Get ReliefWeb Country Profile

reliefweb_get_country
Read-onlyIdempotent

Fetch a country profile from ReliefWeb by ISO3 code, including overview, humanitarian situation summary, key content links, active appeals and response plans, and useful external links. Country profiles are curated by OCHA editors and provide the authoritative situation summary for humanitarian responders. Each curated list also has an archive — thousands of entries deep for a long-running crisis — which the profile leaves out. Two alternative selectors, at most one per call: sections names parts of the profile to return, archive pages one list's archived entries in place of the profile. A profile over the response budget comes back as a section outline naming every section and its byte size. Nothing is truncated on any path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iso3YesISO 3166-1 alpha-3 country code (e.g., SYR, AFG, UKR). Used to look up the country's ReliefWeb profile.
archiveNoArchive mode: return a page of one curated list's ARCHIVED entries instead of the country record. The response carries the record identity, the selected list, and total / shown / offset, plus a next offset while more entries remain. Mutually exclusive with sections — sections slices the record, archive replaces it — and a call supplying both is rejected. A record over the response budget still answers an archive call with the page: a page is bounded by limit and carries none of the record prose, so it never outlines.
sectionsNoSections of the country record to return, named by the sections[].name values an outline response lists. Omit for the whole record, or for a section outline when the record is over the response budget. Records are sparse, so a name this record does not carry is rejected with the names it does. Identity metadata — the record's ID, its name, and its canonical URL — comes back alongside whatever is requested. The call is self-contained — the record is re-fetched and sliced, so no prior call has to be repeated. This names parts of the profile itself and never reaches archived entries — use archive for those.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoReliefWeb numeric country ID.
iso3NoISO 3166-1 alpha-3 code.
kindNofull when the record — or the sections asked for — is returned in whole; outline when the record exceeded the response budget and only its section index is returned; archive when the call asked for a page of one curated list's archived entries, which is returned in place of the record.
nameNoCountry name.
errorNoPresent when the call failed. Absent on success.
statusNoHumanitarian situation status.
archiveNoOne page of a curated list's archived entries, returned in place of the record.
sectionsNoEvery section of the record, largest first. Pass the names back in `sections` to retrieve them.
urlAliasNoCanonical ReliefWeb URL for this country page.
keyContentNoCurrently-active curated key content links maintained by ReliefWeb editors — the present curated set. The archived entries are reachable with archive: { list: "keyContent" }.
usefulLinksNoCurrently-active useful external links curated by ReliefWeb editors — the present set. The archived entries are reachable with archive: { list: "usefulLinks" }.
outlineNoticeNoHow to re-call this tool for specific sections of the record.
profileOverviewNoSituation overview text from the ReliefWeb editorial team.
appealsResponsePlansNoCurrently-active humanitarian appeals and response plans for this country — the present set. The archived entries are reachable with archive: { list: "appealsResponsePlans" }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sections / description
      Previous value: -"Sections of the country record to return, named by the sections[].name values an outline response lists. Omit for the whole record, or for a section outline when the record is over the response budget. Identity metadata — the record's ID, its name, and its canonical URL — comes back alongside whatever is requested. The call is self-contained — the record is re-fetched and sliced, so no prior call has to be repeated. This names parts of the profile itself and never reaches archived entries — use archive for those."New value: +"Sections of the country record to return, named by the sections[].name values an outline response lists. Omit for the whole record, or for a section outline when the record is over the response budget. Records are sparse, so a name this record does not carry is rejected with the names it does. Identity metadata — the record's ID, its name, and its canonical URL — comes back alongside whatever is requested. The call is self-contained — the record is re-fetched and sliced, so no prior call has to be repeated. This names parts of the profile itself and never reaches archived entries — use archive for those."
  2. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "kind"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `not_found`: No country profile found for the given ISO3 code. `selector_conflict`: The call supplied both sections and archive, which select different things. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "not_found",
      +            "selector_conflict"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "kind"
      -]
  3. Changed10 schema fields changed
    • addedInput schema / properties / archive
      Added value: +{
      +  "description": "Archive mode: return a page of one curated list's ARCHIVED entries instead of the country record. The response carries the record identity, the selected list, and total / shown / offset, plus a next offset while more entries remain. Mutually exclusive with sections — sections slices the record, archive replaces it — and a call supplying both is rejected. A record over the response budget still answers an archive call with the page: a page is bounded by limit and carries none of the record prose, so it never outlines.",
      +  "properties": {
      +    "limit": {
      +      "default": 25,
      +      "description": "Maximum archived entries in one page (1-100).",
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "list": {
      +      "description": "Which curated list to page. The archived entries of that list are the ones the profile itself leaves out.",
      +      "enum": [
      +        "keyContent",
      +        "appealsResponsePlans",
      +        "usefulLinks"
      +      ],
      +      "type": "string"
      +    },
      +    "offset": {
      +      "default": 0,
      +      "description": "Zero-based index of the first archived entry to return. Send back the nextOffset from the previous page to continue.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "list"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / sections
      Added value: +{
      +  "description": "Sections of the country record to return, named by the sections[].name values an outline response lists. Omit for the whole record, or for a section outline when the record is over the response budget. Identity metadata — the record's ID, its name, and its canonical URL — comes back alongside whatever is requested. The call is self-contained — the record is re-fetched and sliced, so no prior call has to be repeated. This names parts of the profile itself and never reaches archived entries — use archive for those.",
      +  "items": {
      +    "description": "A section name exactly as the outline response spelled it.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / appealsResponsePlans / description
      Previous value: -"Currently-active humanitarian appeals and response plans for this country — the present set, not the full historical archive."New value: +"Currently-active humanitarian appeals and response plans for this country — the present set. The archived entries are reachable with archive: { list: \"appealsResponsePlans\" }."
    • addedOutput schema / properties / archive
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "One page of a curated list's archived entries, returned in place of the record.",
      +  "properties": {
      +    "entries": {
      +      "description": "The archived entries in this page, in ReliefWeb's own archive order.",
      +      "items": {
      +        "additionalProperties": false,
      +        "description": "One archived entry.",
      +        "properties": {
      +          "date": {
      +            "description": "Publication date, carried by appeals and response plans.",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Entry title.",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Entry URL.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "list": {
      +      "description": "The curated list this page was read from.",
      +      "enum": [
      +        "keyContent",
      +        "appealsResponsePlans",
      +        "usefulLinks"
      +      ],
      +      "type": "string"
      +    },
      +    "nextOffset": {
      +      "description": "Offset to send back to read the next page. Absent when this page reaches the end of the archive.",
      +      "type": "number"
      +    },
      +    "offset": {
      +      "description": "Zero-based index of the first entry in this page.",
      +      "type": "number"
      +    },
      +    "shown": {
      +      "description": "Number of entries in this page.",
      +      "type": "number"
      +    },
      +    "total": {
      +      "description": "Total archived entries in that list for this record.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "list",
      +    "total",
      +    "shown",
      +    "offset",
      +    "entries"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / keyContent / description
      Previous value: -"Currently-active curated key content links maintained by ReliefWeb editors — the present curated set, not the full historical archive."New value: +"Currently-active curated key content links maintained by ReliefWeb editors — the present curated set. The archived entries are reachable with archive: { list: \"keyContent\" }."
    • addedOutput schema / properties / kind
      Added value: +{
      +  "description": "full when the record — or the sections asked for — is returned in whole; outline when the record exceeded the response budget and only its section index is returned; archive when the call asked for a page of one curated list's archived entries, which is returned in place of the record.",
      +  "enum": [
      +    "full",
      +    "outline",
      +    "archive"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / outlineNotice
      Added value: +{
      +  "description": "How to re-call this tool for specific sections of the record.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / sections
      Added value: +{
      +  "description": "Every section of the record, largest first. Pass the names back in `sections` to retrieve them.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One retrievable section of the record: its name and its serialized size.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized byte size of the section",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "Section identifier — pass in `sections` to retrieve it",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "bytes"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / usefulLinks / description
      Previous value: -"Currently-active useful external links curated by ReliefWeb editors — the present set, not the full historical archive."New value: +"Currently-active useful external links curated by ReliefWeb editors — the present set. The archived entries are reachable with archive: { list: \"usefulLinks\" }."
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "name"
      -]New value: +[
      +  "kind"
      +]
  4. Changed3 schema fields changed
    • changedOutput schema / properties / appealsResponsePlans / description
      Previous value: -"Active humanitarian appeals and response plans for this country."New value: +"Currently-active humanitarian appeals and response plans for this country — the present set, not the full historical archive."
    • changedOutput schema / properties / keyContent / description
      Previous value: -"Curated key content links maintained by ReliefWeb editors."New value: +"Currently-active curated key content links maintained by ReliefWeb editors — the present curated set, not the full historical archive."
    • changedOutput schema / properties / usefulLinks / description
      Previous value: -"Useful external links curated by ReliefWeb editors."New value: +"Currently-active useful external links curated by ReliefWeb editors — the present set, not the full historical archive."
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety/identity profile (readOnly, openWorld, idempotent), yet the description adds substantial behavior: budget-driven outline responses naming every section and its byte size, a firm 'Nothing is truncated on any path', archive pages never outlining because they carry no record prose, and the fact that profiles are OCHA-curated and omit archived entries.

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?

Front-loaded with the verb, resource, contents and the two selectors before deeper budget/archive detail; every sentence carries information (curation provenance, archive depth, outline behavior, no-truncation guarantee). Some sentences are long and packed, mildly reducing scannability.

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?

An output schema exists, so return payloads need no explanation, and the description covers the remaining gaps an agent needs: mutual exclusivity, the over-budget outline path, archive paging continuation, and non-truncation. Complete for a 3-parameter nested-schema tool.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents iso3, archive.list/limit/offset and pagination. The description still adds non-obvious semantics the schema does not foreground: the selectors are alternatives capped at one per call, archive skipped entries are exactly those the profile leaves out, and a 'sections' name not present on this record is rejected. Marginal but real added value above the baseline 3.

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 (Fetch) and resource (a country profile from ReliefWeb) keyed by ISO3, and enumerates the profile's contents. It is immediately distinguishable from reliefweb_list_countries and from the other reliefweb_get_* siblings, which target disasters, jobs, reports and training.

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 explicit routing rules between the two selectors: 'Two alternative selectors, at most one per call', with sections slicing the record and archive replacing it for archived entries the profile omits. It also states the omission case (omit sections for the whole record) and the rejection case (both together). It does not explicitly contrast itself with reliefweb_list_countries, which is the only remaining routing gap.

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.