Skip to main content
Glama
metaneutrons

German Legal MCP Server

by metaneutrons

arxiv:search

Search arXiv preprints to find academic papers by keywords, author, or category, retrieving metadata including abstracts and links for legal research integration.

Instructions

Search arXiv preprints by keywords, author, or category. Returns metadata: arXiv ID, title, authors, abstract, categories, PDF/HTML links. Use arxiv:get with the arXiv ID to retrieve full text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query. Prefix with field: all:, ti:, au:, abs:, cat: (e.g., "ti:copyright AND cat:cs.CY")
limitYesMax results (default: 10)
startYesOffset for pagination
sort_byNoSort order

Implementation Reference

  • The implementation of the arxiv:search tool handler, which processes the tool arguments, calls the ArxivClient, and formats the output.
    export async function handleSearch(client: ArxivClient, args: Record<string, unknown>): Promise<ToolResult> {
      const { query, limit = 10, start = 0, sort_by } = args as {
        query: string; limit?: number; start?: number; sort_by?: string;
      };
    
      const params: Record<string, string | number> = { search_query: query, max_results: limit, start };
      if (sort_by) params.sortBy = sort_by;
    
      const { total, entries } = await client.search(params);
      const text = `${total} Treffer (showing ${entries.length})\n\n${entries.map(formatEntry).join('\n\n---\n\n')}`;
      return { content: [{ type: 'text', text }] };
    }
  • Definition and input schema for the arxiv:search tool.
    {
      name: 'arxiv:search',
      description:
        'Search arXiv preprints by keywords, author, or category. ' +
        'Returns metadata: arXiv ID, title, authors, abstract, categories, PDF/HTML links. ' +
        'Use arxiv:get with the arXiv ID to retrieve full text.',
      inputSchema: z.object({
        query: z.string().describe('Search query. Prefix with field: all:, ti:, au:, abs:, cat: (e.g., "ti:copyright AND cat:cs.CY")'),
        limit: z.number().optional().default(10).describe('Max results (default: 10)'),
        start: z.number().optional().default(0).describe('Offset for pagination'),
        sort_by: z.enum(['relevance', 'lastUpdatedDate', 'submittedDate']).optional().describe('Sort order'),
      }),
    },
  • Tool call routing for arxiv:search within the ArxivProvider.
    case 'arxiv:search': return handleSearch(this.client, args);
Behavior4/5

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

No annotations provided, so description carries full burden. It compensates by disclosing return structure ('Returns metadata: arXiv ID, title, authors...') which is crucial given the lack of output schema. However, it omits explicit safety confirmation (read-only nature), rate limits, or error behaviors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly constructed sentences with zero waste. First sentence covers purpose and return values; second provides sibling differentiation. Information is front-loaded and appropriately sized for the tool's complexity.

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 4-parameter search tool with 100% schema coverage but no output schema, the description is complete. It documents the return payload in lieu of an output schema and clarifies the relationship to sibling 'arxiv:get', leaving no critical gaps for agent operation.

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 100%, establishing baseline 3. Description mentions searching 'by keywords, author, or category' which aligns with query field prefixes documented in schema, but adds no additional syntax details, examples, or semantic constraints beyond what the schema already provides.

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?

Description states specific verb ('Search') and resource ('arXiv preprints') with clear scope ('by keywords, author, or category'). It effectively distinguishes from sibling tool 'arxiv:get' by stating the latter is for retrieving full text, preventing confusion between search and retrieval operations.

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?

Explicitly provides alternative tool guidance: 'Use arxiv:get with the arXiv ID to retrieve full text.' This clearly signals when to use the sibling instead, implying this tool is for discovery/metadata only, not full-text retrieval.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metaneutrons/german-legal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server