Skip to main content
Glama

get_foreign_agents

Read-only

FARA registrations (efile.fara.gov, DOJ): US agents of foreign principals, one row per registrant and principal pair. Read weekly from DOJ's active list; one that later leaves it stays, as status 'terminated'. Fields: keyvex.com/docs/tools/get_foreign_agents

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on sort_by.
untilNoYYYY-MM-DD, inclusive, on sort_by.
statusNoactive = on DOJ's list now; terminated = left it since. Omit for both.
sort_byNoDefault registration_date.
sort_orderNoDefault desc.
registrant_nameNoCase-insensitive substring.
registration_numberNoExact.
has_foreign_principalNo
foreign_principal_nameNoCase-insensitive substring.
foreign_principal_countryNoExact, upper-cased, e.g. 'CHINA'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / foreign_principal_country / description
      Previous value: -"Country of the foreign principal, matched uppercase (e.g. 'CHINA', 'RUSSIA', 'SAUDI ARABIA'). The key foreign-influence filter."New value: +"Exact, upper-cased, e.g. 'CHINA'."
    • changedInput schema / properties / foreign_principal_name / description
      Previous value: -"Case-insensitive substring against the foreign principal's name."New value: +"Case-insensitive substring."
    • removedInput schema / properties / has_foreign_principal / description
      Removed value: -"Filter to records that carry a foreign-principal relationship (true) or registrants with no active foreign principal (false)."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum records to return. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / registrant_name / description
      Previous value: -"Case-insensitive substring against the US registrant (agent) name."New value: +"Case-insensitive substring."
    • changedInput schema / properties / registration_number / description
      Previous value: -"Exact FARA registration number. Fastest lookup."New value: +"Exact."
    • changedInput schema / properties / since / description
      Previous value: -"ISO date (YYYY-MM-DD). Only records on or after this date, by sort_by."New value: +"YYYY-MM-DD, inclusive, on sort_by."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Default: registration_date."New value: +"Default registration_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc (most recent first)."New value: +"Default desc."
    • changedInput schema / properties / status / description
      Previous value: -"Registration status: 'active' = currently on DOJ's list; 'terminated' = left the list since ingestion (kept as history). Omit for both."New value: +"active = on DOJ's list now; terminated = left it since. Omit for both."
    • changedInput schema / properties / until / description
      Previous value: -"ISO date (YYYY-MM-DD). Only records on or before this date."New value: +"YYYY-MM-DD, inclusive, on sort_by."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: weekly refresh cadence, DOJ active-list sourcing, and the retention rule that a registrant leaving the list persists with status 'terminated', which materially affects how results should be interpreted.

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?

Two tight sentences front-load the source and granularity, then the lifecycle caveat. The trailing 'Fields: keyvex.com/docs/tools/get_foreign_agents' is a bare external pointer that consumes space without inline value, a minor blemish on an otherwise efficient description.

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

Completeness4/5

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

With 11 optional parameters but 91% schema coverage and no output schema, the description carries only the burden of framing the data: source, unit of observation, freshness, and terminated-record retention are all stated. Missing is any note on result volume or pagination behavior beyond the schema's default limit of 50, which is a small gap for a list tool.

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 91%, with enums and formats already documented in the schema (status, sort_by, sort_order, date format, country casing). The description adds no per-parameter meaning beyond restating the terminated status concept, so the baseline of 3 applies.

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?

The description names the exact dataset (FARA registrations from efile.fara.gov / DOJ), the entity modeled (US agents of foreign principals), and the row granularity (one row per registrant and principal pair). That is enough for an agent to distinguish this from any sibling dataset tool without opening the schema.

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?

Usage is only implied by the dataset description; there is no explicit when-to-use, when-not-to-use, or named alternative. The one genuinely useful usage signal is that terminated registrants are retained and must be filtered via status, but that is framed as data semantics rather than query guidance.

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.

Resources