Skip to main content
Glama

evidence_pull

Read-onlyIdempotent

Returns one complete citation bundle for a single document: metadata, a permanent legal_link, a citation_template, the body, and a temporary source-file URL when one exists.

When to use: When one call must support a citation or an audit. Examples: 'show me the source for this Irish statute', 'cite uuid … with its authority, date, link, and text'. Prefer this over calling the body and file tools separately. When not: For plain text alone, use list_full_text (example: 'quote the operative wording'). For structured Markdown alone, use list_markdown (example: 'keep the article headings'). For only a temporary URL to the original PDF or source file, use document_presigned_url (example: 'download the original file'). To browse or search without the bundle, use list_documents, search, or horizon_scan. For one historical version, use document_version. Do not call without an iso from list_jurisdictions and the document uuid. Skip if you already have this bundle for the same iso and uuid.

Parameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased (e.g. IE, NL, US_CA). uuid (required) is the document UUID from list_documents, search, or horizon_scan. include_text defaults to true and fetches the body. include_source_url defaults to true and adds a temporary signed URL to the original file when one exists. text_format defaults to 'markdown' (structured Markdown); 'plain' returns plain text instead. Set include_text or include_source_url to false only when that part of the bundle is unnecessary.

Behavior: Read-only. Reads the document record, optionally the stored body, and optionally signs a temporary source-file URL. Does not create, update, or delete records, files, or credentials. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached. The source-file URL is temporary: source_file_note says to fetch it promptly, and legal_link is the permanent citation URL. source_file_url is null when no original file is stored. An archived document returns an archived error.

Returns: One citation bundle: uuid, version, metadata, legal_link, citation_template, and, when requested, content_format plus content, and source_file_url.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "iso": "<iso>",
      "uuid": "<uuid>"
    },
    "name": "evidence_pull"
  }
}

Input Schema

NameRequiredDescriptionDefault
isoYesDocument's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc.
uuidYesDocument's UUID
text_formatNo'markdown' (preserves structure) or 'plain'.markdown
include_textNoFetch the full body (default True)
include_source_urlNoFetch a temporary signed URL to the original file (PDF etc.) where available (default True).

Output Schema

NameRequiredDescriptionDefault
dataYesCitation chain for the requested document: metadata, legal link, optional source file URL, and optional body.
messageYesResult message

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / document_id
      Removed value: -{
      -  "description": "Numeric document_id from any listing/search tool",
      -  "exclusiveMinimum": 0,
      -  "type": "integer"
      -}
    • addedInput schema / properties / uuid
      Added value: +{
      +  "description": "Document's UUID",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "iso",
      -  "document_id"
      -]New value: +[
      +  "iso",
      +  "uuid"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "description": "Citation chain for the requested document: metadata, legal link, optional source file URL, and optional body.",
      +      "properties": {
      +        "citation_template": {
      +          "description": "Document's citation template",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "content": {
      +          "description": "Document body in content_format: structured Markdown or plain text",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "content_format": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "markdown",
      +                "plain"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Document's content format"
      +        },
      +        "legal_link": {
      +          "description": "Document's legal link",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "metadata": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "classification": {
      +                  "additionalProperties": false,
      +                  "description": "Classification",
      +                  "properties": {
      +                    "authority_type": {
      +                      "description": "Authority Type of the content",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "issuing_authority": {
      +                      "description": "Issuing Authority of the content",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "issuing_authority_tags": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "string"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Issuing Authority Tags of the content"
      +                    },
      +                    "keywords": {
      +                      "description": "Keywords of the content",
      +                      "items": {
      +                        "type": "string"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "source_keywords": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "string"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Source Keywords of the content"
      +                    },
      +                    "tags": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "string"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Tags of the content"
      +                    }
      +                  },
      +                  "required": [
      +                    "authority_type",
      +                    "issuing_authority",
      +                    "issuing_authority_tags",
      +                    "keywords",
      +                    "tags",
      +                    "source_keywords"
      +                  ],
      +                  "type": "object"
      +                },
      +                "content": {
      +                  "additionalProperties": false,
      +                  "description": "Content",
      +                  "properties": {
      +                    "file": {
      +                      "anyOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "content_type": {
      +                              "description": "Content Type",
      +                              "type": [
      +                                "string",
      +                                "null"
      +                              ]
      +                            },
      +                            "size_bytes": {
      +                              "description": "Size in bytes",
      +                              "type": [
      +                                "number",
      +                                "null"
      +                              ]
      +                            },
      +                            "url": {
      +                              "description": "Source-file metadata, not a downloadable URL. Call document_presigned_url for a temporary source-file URL.",
      +                              "type": [
      +                                "string",
      +                                "null"
      +                              ]
      +                            }
      +                          },
      +                          "required": [
      +                            "content_type",
      +                            "size_bytes",
      +                            "url"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "File metadata, or null when the document has no file. Not a citation bundle; call evidence_pull for that."
      +                    },
      +                    "markdown": {
      +                      "description": "Path hint for the structured Markdown body. Call list_markdown to read it; this field is not the Markdown.",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "text": {
      +                      "description": "Path hint for the plain-text body. Call list_full_text to read it; this field is not the text.",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "text",
      +                    "markdown",
      +                    "file"
      +                  ],
      +                  "type": "object"
      +                },
      +                "dates": {
      +                  "additionalProperties": false,
      +                  "description": "Dates",
      +                  "properties": {
      +                    "decided": {
      +                      "description": "Decision Date",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "effective": {
      +                      "description": "Effective Date",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "enacted": {
      +                      "description": "Date of Enactment",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "expired": {
      +                      "description": "Expiration Date",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "last_amended": {
      +                      "description": "Date of Last Amendment",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "published": {
      +                      "description": "Publication Date",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "repealed": {
      +                      "description": "Date of Repeal",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "published",
      +                    "enacted",
      +                    "effective",
      +                    "decided",
      +                    "last_amended",
      +                    "expired",
      +                    "repealed"
      +                  ],
      +                  "type": "object"
      +                },
      +                "id": {
      +                  "description": "ID",
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "is_repealed": {
      +                  "description": "Is Repealed",
      +                  "type": [
      +                    "boolean",
      +                    "null"
      +                  ]
      +                },
      +                "jurisdiction": {
      +                  "additionalProperties": false,
      +                  "description": "Jurisdiction",
      +                  "properties": {
      +                    "country": {
      +                      "description": "Country",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "iso": {
      +                      "description": "ISO code of the jurisdiction",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "state": {
      +                      "description": "State",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "iso",
      +                    "country",
      +                    "state"
      +                  ],
      +                  "type": "object"
      +                },
      +                "language": {
      +                  "description": "Language",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "provenance": {
      +                  "additionalProperties": false,
      +                  "description": "Provenance",
      +                  "properties": {
      +                    "crawled_at": {
      +                      "description": "Date and time the content was crawled",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "source_updated_at": {
      +                      "description": "Date and time the source was updated",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "crawled_at",
      +                    "source_updated_at"
      +                  ],
      +                  "type": "object"
      +                },
      +                "section_title": {
      +                  "description": "Section Title",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "source": {
      +                  "additionalProperties": false,
      +                  "description": "Source",
      +                  "properties": {
      +                    "domain": {
      +                      "description": "Domain of the source",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "identifier": {
      +                      "description": "Identifier of the source",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "portal_id": {
      +                      "description": "Portal ID of the source",
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "portal_name": {
      +                      "description": "Portal Name of the source",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "portal_tags": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "string"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Portal Tasks of the source"
      +                    },
      +                    "secondary_identifier": {
      +                      "description": "Secondary Identifier of the source",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "url": {
      +                      "description": "URL of the source",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "portal_id",
      +                    "portal_name",
      +                    "portal_tags",
      +                    "domain",
      +                    "url",
      +                    "identifier",
      +                    "secondary_identifier"
      +                  ],
      +                  "type": "object"
      +                },
      +                "summary": {
      +                  "description": "Summary",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "title": {
      +                  "description": "Title",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "uuid": {
      +                  "description": "UUID",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "version": {
      +                  "description": "Version",
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "uuid",
      +                "version",
      +                "title",
      +                "section_title",
      +                "language",
      +                "is_repealed",
      +                "summary",
      +                "jurisdiction",
      +                "source",
      +                "classification",
      +                "dates",
      +                "content",
      +                "provenance"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Document's metadata"
      +        },
      +        "source_file_note": {
      +          "description": "Document's source file note",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "source_file_url": {
      +          "description": "Temporary signed URL to the original source file, or null when none exists. Permanent citation URL is legal_link.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "uuid": {
      +          "description": "Document's UUID",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "version": {
      +          "anyOf": [
      +            {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Document's version"
      +        }
      +      },
      +      "required": [
      +        "version"
      +      ],
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Result message",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "message",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, but the description adds substantive context beyond them: OAuth/Bearer auth with 401 conditions, no MCP-layer rate limits, retry-safe, not cached, temporary URL expiry with legal_link as the permanent alternative, null source_file_url when no original exists, and an archived-document error. The only gap is that it does not describe bundle size or latency for large documents.

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?

Headers (When to use, When not, Parameters, Behavior, Returns) make it scannable and front-loaded, and most sentences carry distinct information. There is some duplication between the opening sentence and the Returns block, and the enumerated example phrasings are slightly verbose, but nothing is filler.

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?

For a five-parameter composite-read tool with auth, this covers purpose, routing, prerequisites, auth, rate limits, caching, error cases, and output shape. An output schema exists, so the extra Returns summary is a bonus rather than a necessity, and no behavior an agent needs to invoke it correctly is missing.

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%, so the baseline is 3, but the description goes further by explaining provenance for iso and uuid, that iso is uppercased, and that include_text/include_source_url should be set to false only when that portion of the bundle is unneeded. It conveys the cost implications of the defaults, which the schema does not.

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 opening sentence names a specific verb (returns) and a concrete composite resource (a citation bundle for one document) and enumerates its parts: metadata, legal_link, citation_template, body, and source-file URL. That scope cleanly separates it from single-purpose siblings such as list_full_text, list_markdown, and document_presigned_url.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when-to-use rationale ('when one call must support a citation or an audit') with sample phrasings, then a when-not section that routes to a named alternative for each narrower need. It also states prerequisites (iso from list_jurisdictions, uuid from list_documents/search/horizon_scan) and a skip condition for already-held bundles.

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.